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:

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 ( const CDBWrapper _parent,
leveldb::Iterator *  _piter 
[in]_parentParent CDBWrapper instance.
[in]_piterThe original leveldb iterator.

Definition at line 129 of file dbwrapper.h.

CDBIterator::~CDBIterator ( )

Definition at line 236 of file dbwrapper.cpp.

Member Function Documentation

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

Definition at line 147 of file dbwrapper.h.

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

Definition at line 158 of file dbwrapper.h.

Here is the call graph for this function:

unsigned int CDBIterator::GetValueSize ( )

Definition at line 170 of file dbwrapper.h.

void CDBIterator::Next ( )

Definition at line 239 of file dbwrapper.cpp.

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

Definition at line 137 of file dbwrapper.h.

Here is the call graph for this function:

void CDBIterator::SeekToFirst ( )

Definition at line 238 of file dbwrapper.cpp.

bool CDBIterator::Valid ( ) const

Definition at line 237 of file dbwrapper.cpp.

Member Data Documentation

const CDBWrapper& CDBIterator::parent

Definition at line 120 of file dbwrapper.h.

leveldb::Iterator* CDBIterator::piter

Definition at line 121 of file dbwrapper.h.

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