Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CDBIterator Class Reference

#include <dbwrapper.h>

Collaboration diagram for CDBIterator:
[legend]

Public Member Functions

 CDBIterator (const CDBWrapper &_parent, leveldb::Iterator *_piter)
 
 ~CDBIterator ()
 
bool Valid ()
 
void SeekToFirst ()
 
template<typename K >
void Seek (const K &key)
 
void Next ()
 
template<typename K >
bool GetKey (K &key)
 
template<typename V >
bool GetValue (V &value)
 
unsigned int GetValueSize ()
 

Private Attributes

const CDBWrapperparent
 
leveldb::Iterator * piter
 

Detailed Description

Definition at line 117 of file dbwrapper.h.

Constructor & Destructor Documentation

CDBIterator::CDBIterator ( const CDBWrapper _parent,
leveldb::Iterator *  _piter 
)
inline
Parameters
[in]_parentParent CDBWrapper instance.
[in]_piterThe original leveldb iterator.

Definition at line 129 of file dbwrapper.h.

CDBIterator::~CDBIterator ( )

Definition at line 192 of file dbwrapper.cpp.

Member Function Documentation

template<typename K >
bool CDBIterator::GetKey ( K &  key)
inline

Definition at line 147 of file dbwrapper.h.

template<typename V >
bool CDBIterator::GetValue ( V &  value)
inline

Definition at line 158 of file dbwrapper.h.

Here is the call graph for this function:

unsigned int CDBIterator::GetValueSize ( )
inline

Definition at line 170 of file dbwrapper.h.

void CDBIterator::Next ( )

Definition at line 195 of file dbwrapper.cpp.

template<typename K >
void CDBIterator::Seek ( const K &  key)
inline

Definition at line 137 of file dbwrapper.h.

Here is the call graph for this function:

void CDBIterator::SeekToFirst ( )

Definition at line 194 of file dbwrapper.cpp.

bool CDBIterator::Valid ( )

Definition at line 193 of file dbwrapper.cpp.

Member Data Documentation

const CDBWrapper& CDBIterator::parent
private

Definition at line 120 of file dbwrapper.h.

leveldb::Iterator* CDBIterator::piter
private

Definition at line 121 of file dbwrapper.h.


The documentation for this class was generated from the following files: