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

#include <dbwrapper.h>

Public Member Functions

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

Private Attributes

leveldb::Iterator * piter
 
int nVersion
 

Detailed Description

Definition at line 125 of file dbwrapper.h.

Constructor & Destructor Documentation

◆ CDBIterator()

CDBIterator::CDBIterator ( leveldb::Iterator *  _piter,
int  _nVersion 
)
inline
Parameters
[in]_piterThe original leveldb iterator.
[in]_nVersionThe version used to serialize data.

Definition at line 136 of file dbwrapper.h.

◆ ~CDBIterator()

CDBIterator::~CDBIterator ( )

Definition at line 108 of file dbwrapper.cpp.

Member Function Documentation

◆ GetKey() [1/2]

CDataStream CDBIterator::GetKey ( )
inline

Definition at line 170 of file dbwrapper.h.

Here is the caller graph for this function:

◆ GetKey() [2/2]

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

Definition at line 159 of file dbwrapper.h.

Here is the call graph for this function:

◆ GetValue()

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

Definition at line 176 of file dbwrapper.h.

◆ GetValueSize()

unsigned int CDBIterator::GetValueSize ( )
inline

Definition at line 188 of file dbwrapper.h.

◆ Next()

void CDBIterator::Next ( )

Definition at line 111 of file dbwrapper.cpp.

◆ Seek() [1/2]

void CDBIterator::Seek ( const CDataStream ssKey)
inline

Definition at line 151 of file dbwrapper.h.

Here is the call graph for this function:

◆ Seek() [2/2]

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

Definition at line 143 of file dbwrapper.h.

Here is the call graph for this function:

◆ SeekToFirst()

void CDBIterator::SeekToFirst ( )

Definition at line 110 of file dbwrapper.cpp.

◆ Valid()

bool CDBIterator::Valid ( )

Definition at line 109 of file dbwrapper.cpp.

Member Data Documentation

◆ nVersion

int CDBIterator::nVersion
private

Definition at line 129 of file dbwrapper.h.

◆ piter

leveldb::Iterator* CDBIterator::piter
private

Definition at line 128 of file dbwrapper.h.


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