Bitcoin Core  0.15.99
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 () const
 
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::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::~CDBIterator ( )

Definition at line 236 of file dbwrapper.cpp.

Member Function Documentation

◆ GetKey()

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

Definition at line 147 of file dbwrapper.h.

◆ GetValue()

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

Definition at line 158 of file dbwrapper.h.

◆ GetValueSize()

unsigned int CDBIterator::GetValueSize ( )
inline

Definition at line 170 of file dbwrapper.h.

◆ Next()

void CDBIterator::Next ( )

Definition at line 239 of file dbwrapper.cpp.

◆ Seek()

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

Definition at line 137 of file dbwrapper.h.

◆ SeekToFirst()

void CDBIterator::SeekToFirst ( )

Definition at line 238 of file dbwrapper.cpp.

◆ Valid()

bool CDBIterator::Valid ( ) const

Definition at line 237 of file dbwrapper.cpp.

Member Data Documentation

◆ parent

const CDBWrapper& CDBIterator::parent
private

Definition at line 120 of file dbwrapper.h.

◆ piter

leveldb::Iterator* CDBIterator::piter
private

Definition at line 121 of file dbwrapper.h.


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