Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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 145 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 155 of file dbwrapper.h.

◆ ~CDBIterator()

CDBIterator::~CDBIterator ( )

Definition at line 248 of file dbwrapper.cpp.

Member Function Documentation

◆ GetKey()

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

Definition at line 173 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 184 of file dbwrapper.h.

Here is the call graph for this function:

◆ GetValueSize()

unsigned int CDBIterator::GetValueSize ( )
inline

Definition at line 197 of file dbwrapper.h.

◆ Next()

void CDBIterator::Next ( )

Definition at line 257 of file dbwrapper.cpp.

◆ Seek()

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

Definition at line 163 of file dbwrapper.h.

Here is the call graph for this function:

◆ SeekToFirst()

void CDBIterator::SeekToFirst ( )

Definition at line 254 of file dbwrapper.cpp.

◆ Valid()

bool CDBIterator::Valid ( ) const

Definition at line 251 of file dbwrapper.cpp.

Member Data Documentation

◆ parent

const CDBWrapper& CDBIterator::parent
private

Definition at line 147 of file dbwrapper.h.

◆ piter

leveldb::Iterator* CDBIterator::piter
private

Definition at line 148 of file dbwrapper.h.


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