Dash Core  0.12.2.1
P2P Digital Currency
CDBIterator Class Reference

#include <dbwrapper.h>

Public Member Functions

 CDBIterator (leveldb::Iterator *piterIn, const std::vector< unsigned char > *obfuscate_key)
 
 ~CDBIterator ()
 
bool Valid ()
 
void SeekToFirst ()
 
template<typename K >
void Seek (const K &key)
 
void Next ()
 
template<typename K >
bool GetKey (K &key)
 
unsigned int GetKeySize ()
 
template<typename V >
bool GetValue (V &value)
 
unsigned int GetValueSize ()
 

Private Attributes

leveldb::Iterator * piter
 
const std::vector< unsigned char > * obfuscate_key
 

Detailed Description

Definition at line 72 of file dbwrapper.h.

Constructor & Destructor Documentation

◆ CDBIterator()

CDBIterator::CDBIterator ( leveldb::Iterator *  piterIn,
const std::vector< unsigned char > *  obfuscate_key 
)
inline
Parameters
[in]piterInThe original leveldb iterator.
[in]obfuscate_keyIf passed, XOR data with this key.

Definition at line 84 of file dbwrapper.h.

◆ ~CDBIterator()

CDBIterator::~CDBIterator ( )

Definition at line 149 of file dbwrapper.cpp.

Member Function Documentation

◆ GetKey()

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

Definition at line 102 of file dbwrapper.h.

◆ GetKeySize()

unsigned int CDBIterator::GetKeySize ( )
inline

Definition at line 113 of file dbwrapper.h.

◆ GetValue()

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

Definition at line 117 of file dbwrapper.h.

◆ GetValueSize()

unsigned int CDBIterator::GetValueSize ( )
inline

Definition at line 129 of file dbwrapper.h.

◆ Next()

void CDBIterator::Next ( )

Definition at line 152 of file dbwrapper.cpp.

◆ Seek()

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

Definition at line 92 of file dbwrapper.h.

◆ SeekToFirst()

void CDBIterator::SeekToFirst ( )

Definition at line 151 of file dbwrapper.cpp.

◆ Valid()

bool CDBIterator::Valid ( )

Definition at line 150 of file dbwrapper.cpp.

Member Data Documentation

◆ obfuscate_key

const std::vector<unsigned char>* CDBIterator::obfuscate_key
private

Definition at line 76 of file dbwrapper.h.

Referenced by GetValue().

◆ piter

leveldb::Iterator* CDBIterator::piter
private

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