Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <dbwrapper.h>

+ Collaboration diagram for CDBIterator:

Public Member Functions

 CDBIterator (const CDBWrapper &_parent, leveldb::Iterator *_piter)
 
 ~CDBIterator ()
 
bool Valid () const
 
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 ()
 
unsigned int GetKeySize ()
 
template<typename V >
bool GetValue (V &value)
 
unsigned int GetValueSize ()
 

Private Attributes

const CDBWrapperparent
 
leveldb::Iterator * piter
 

Detailed Description

Definition at line 126 of file dbwrapper.h.

Constructor & Destructor Documentation

◆ CDBIterator()

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

Definition at line 138 of file dbwrapper.h.

◆ ~CDBIterator()

CDBIterator::~CDBIterator ( )

Definition at line 191 of file dbwrapper.cpp.

References piter.

Member Function Documentation

◆ GetKey() [1/2]

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

Definition at line 160 of file dbwrapper.h.

References GetKey().

◆ GetKey() [2/2]

CDataStream CDBIterator::GetKey ( )
inline

Definition at line 170 of file dbwrapper.h.

References CLIENT_VERSION, piter, and SER_DISK.

Referenced by GetKey().

◆ GetKeySize()

unsigned int CDBIterator::GetKeySize ( )
inline

Definition at line 175 of file dbwrapper.h.

References piter.

◆ GetValue()

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

◆ GetValueSize()

unsigned int CDBIterator::GetValueSize ( )
inline

Definition at line 191 of file dbwrapper.h.

References piter.

◆ Next()

void CDBIterator::Next ( )

Definition at line 194 of file dbwrapper.cpp.

References piter.

◆ Seek() [1/2]

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

◆ Seek() [2/2]

void CDBIterator::Seek ( const CDataStream ssKey)
inline

Definition at line 153 of file dbwrapper.h.

References CDataStream::data(), piter, and CDataStream::size().

◆ SeekToFirst()

void CDBIterator::SeekToFirst ( )

Definition at line 193 of file dbwrapper.cpp.

References piter.

◆ Valid()

bool CDBIterator::Valid ( ) const

Definition at line 192 of file dbwrapper.cpp.

References piter.

Member Data Documentation

◆ parent

const CDBWrapper& CDBIterator::parent
private

Definition at line 129 of file dbwrapper.h.

Referenced by GetValue().

◆ piter

leveldb::Iterator* CDBIterator::piter
private

The documentation for this class was generated from the following files:
Released under the MIT license