Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <dbwrapper.h>
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 CDBWrapper & | parent |
leveldb::Iterator * | piter |
Detailed Description
Definition at line 126 of file dbwrapper.h.
Constructor & Destructor Documentation
◆ CDBIterator()
|
inline |
- Parameters
-
[in] _parent Parent CDBWrapper instance. [in] _piter The 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]
|
inline |
Definition at line 160 of file dbwrapper.h.
References GetKey().
◆ GetKey() [2/2]
|
inline |
Definition at line 170 of file dbwrapper.h.
References CLIENT_VERSION, piter, and SER_DISK.
Referenced by GetKey().
◆ GetKeySize()
|
inline |
Definition at line 175 of file dbwrapper.h.
References piter.
◆ GetValue()
|
inline |
Definition at line 179 of file dbwrapper.h.
References CLIENT_VERSION, dbwrapper_private::GetObfuscateKey(), parent, piter, SER_DISK, and CDataStream::Xor().
◆ 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]
|
inline |
Definition at line 146 of file dbwrapper.h.
References CLIENT_VERSION, DBWRAPPER_PREALLOC_KEY_SIZE, CDataStream::reserve(), and SER_DISK.
◆ Seek() [2/2]
|
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
|
private |
Definition at line 129 of file dbwrapper.h.
Referenced by GetValue().
◆ piter
|
private |
Definition at line 130 of file dbwrapper.h.
Referenced by GetKey(), GetKeySize(), GetValue(), GetValueSize(), Next(), Seek(), SeekToFirst(), Valid(), and ~CDBIterator().
The documentation for this class was generated from the following files:
- src/dbwrapper.h
- src/dbwrapper.cpp