Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <dbwrapper.h>
Public Member Functions | |
CDBTransactionIterator (CDBTransaction &_transaction) | |
void | SeekToFirst () |
template<typename K > | |
void | Seek (const K &key) |
void | Seek (const CDataStream &ssKey) |
bool | Valid () |
void | Next () |
template<typename K > | |
bool | GetKey (K &key) |
CDataStream | GetKey () |
unsigned int | GetKeySize () |
template<typename V > | |
bool | GetValue (V &value) |
Private Types | |
typedef std::remove_pointer< decltype(transaction.parent.NewIterator())>::type | ParentIterator |
Private Member Functions | |
void | SkipDeletedAndOverwritten () |
void | DecideCur () |
Private Attributes | |
CDBTransaction & | transaction |
CDBTransaction::WritesMap::iterator | transactionIt |
std::unique_ptr< ParentIterator > | parentIt |
CDataStream | parentKey |
bool | curIsParent {false} |
Detailed Description
template<typename CDBTransaction>
class CDBTransactionIterator< CDBTransaction >
Definition at line 401 of file dbwrapper.h.
Member Typedef Documentation
◆ ParentIterator
|
private |
Definition at line 406 of file dbwrapper.h.
Constructor & Destructor Documentation
◆ CDBTransactionIterator()
|
inlineexplicit |
Definition at line 418 of file dbwrapper.h.
References CDBTransaction< Parent, CommitTarget >::parent, CDBTransactionIterator< CDBTransaction >::parentIt, CDBTransactionIterator< CDBTransaction >::transaction, CDBTransactionIterator< CDBTransaction >::transactionIt, and CDBTransaction< Parent, CommitTarget >::writes.
Member Function Documentation
◆ DecideCur()
|
inlineprivate |
Definition at line 536 of file dbwrapper.h.
References CDBTransactionIterator< CDBTransaction >::curIsParent, CDBTransaction< Parent, CommitTarget >::DataStreamCmp::less(), CDBTransactionIterator< CDBTransaction >::parentIt, CDBTransactionIterator< CDBTransaction >::parentKey, CDBTransactionIterator< CDBTransaction >::transaction, CDBTransactionIterator< CDBTransaction >::transactionIt, and CDBTransaction< Parent, CommitTarget >::writes.
Referenced by CDBTransactionIterator< CDBTransaction >::Next(), CDBTransactionIterator< CDBTransaction >::Seek(), and CDBTransactionIterator< CDBTransaction >::SeekToFirst().
◆ GetKey() [1/2]
|
inline |
◆ GetKey() [2/2]
|
inline |
Definition at line 491 of file dbwrapper.h.
References CLIENT_VERSION, CDBTransactionIterator< CDBTransaction >::curIsParent, CDBTransactionIterator< CDBTransaction >::parentKey, SER_DISK, CDBTransactionIterator< CDBTransaction >::transactionIt, and CDBTransactionIterator< CDBTransaction >::Valid().
◆ GetKeySize()
|
inline |
◆ GetValue()
|
inline |
Definition at line 514 of file dbwrapper.h.
References CDBTransactionIterator< CDBTransaction >::curIsParent, CDBTransactionIterator< CDBTransaction >::parentKey, CDBTransaction< Parent, CommitTarget >::Read(), CDBTransactionIterator< CDBTransaction >::transaction, CDBTransactionIterator< CDBTransaction >::transactionIt, and CDBTransactionIterator< CDBTransaction >::Valid().
◆ Next()
|
inline |
Definition at line 449 of file dbwrapper.h.
References CDBTransactionIterator< CDBTransaction >::curIsParent, CDBTransactionIterator< CDBTransaction >::DecideCur(), CDBTransactionIterator< CDBTransaction >::parentIt, CDBTransactionIterator< CDBTransaction >::SkipDeletedAndOverwritten(), CDBTransactionIterator< CDBTransaction >::transaction, CDBTransactionIterator< CDBTransaction >::transactionIt, and CDBTransaction< Parent, CommitTarget >::writes.
◆ Seek() [1/2]
|
inline |
Definition at line 434 of file dbwrapper.h.
References CDBTransaction< Parent, CommitTarget >::KeyToDataStream().
◆ Seek() [2/2]
|
inline |
Definition at line 438 of file dbwrapper.h.
References CDBTransactionIterator< CDBTransaction >::DecideCur(), CDBTransactionIterator< CDBTransaction >::parentIt, CDBTransactionIterator< CDBTransaction >::SkipDeletedAndOverwritten(), CDBTransactionIterator< CDBTransaction >::transaction, CDBTransactionIterator< CDBTransaction >::transactionIt, and CDBTransaction< Parent, CommitTarget >::writes.
◆ SeekToFirst()
|
inline |
Definition at line 426 of file dbwrapper.h.
References CDBTransactionIterator< CDBTransaction >::DecideCur(), CDBTransactionIterator< CDBTransaction >::parentIt, CDBTransactionIterator< CDBTransaction >::SkipDeletedAndOverwritten(), CDBTransactionIterator< CDBTransaction >::transaction, CDBTransactionIterator< CDBTransaction >::transactionIt, and CDBTransaction< Parent, CommitTarget >::writes.
◆ SkipDeletedAndOverwritten()
|
inlineprivate |
Definition at line 526 of file dbwrapper.h.
References CDBTransaction< Parent, CommitTarget >::deletes, CDBTransactionIterator< CDBTransaction >::parentIt, CDBTransactionIterator< CDBTransaction >::parentKey, CDBTransactionIterator< CDBTransaction >::transaction, and CDBTransaction< Parent, CommitTarget >::writes.
Referenced by CDBTransactionIterator< CDBTransaction >::Next(), CDBTransactionIterator< CDBTransaction >::Seek(), and CDBTransactionIterator< CDBTransaction >::SeekToFirst().
◆ Valid()
|
inline |
Definition at line 445 of file dbwrapper.h.
References CDBTransactionIterator< CDBTransaction >::parentIt, CDBTransactionIterator< CDBTransaction >::transaction, CDBTransactionIterator< CDBTransaction >::transactionIt, and CDBTransaction< Parent, CommitTarget >::writes.
Referenced by CDBTransactionIterator< CDBTransaction >::GetKey(), CDBTransactionIterator< CDBTransaction >::GetKeySize(), and CDBTransactionIterator< CDBTransaction >::GetValue().
Member Data Documentation
◆ curIsParent
|
private |
Definition at line 415 of file dbwrapper.h.
Referenced by CDBTransactionIterator< CDBTransaction >::DecideCur(), CDBTransactionIterator< CDBTransaction >::GetKey(), CDBTransactionIterator< CDBTransaction >::GetKeySize(), CDBTransactionIterator< CDBTransaction >::GetValue(), and CDBTransactionIterator< CDBTransaction >::Next().
◆ parentIt
|
private |
Definition at line 413 of file dbwrapper.h.
Referenced by CDBTransactionIterator< CDBTransaction >::CDBTransactionIterator(), CDBTransactionIterator< CDBTransaction >::DecideCur(), CDBTransactionIterator< CDBTransaction >::GetKeySize(), CDBTransactionIterator< CDBTransaction >::Next(), CDBTransactionIterator< CDBTransaction >::Seek(), CDBTransactionIterator< CDBTransaction >::SeekToFirst(), CDBTransactionIterator< CDBTransaction >::SkipDeletedAndOverwritten(), and CDBTransactionIterator< CDBTransaction >::Valid().
◆ parentKey
|
private |
◆ transaction
|
private |
Definition at line 404 of file dbwrapper.h.
Referenced by CDBTransactionIterator< CDBTransaction >::CDBTransactionIterator(), CDBTransactionIterator< CDBTransaction >::DecideCur(), CDBTransactionIterator< CDBTransaction >::GetValue(), CDBTransactionIterator< CDBTransaction >::Next(), CDBTransactionIterator< CDBTransaction >::Seek(), CDBTransactionIterator< CDBTransaction >::SeekToFirst(), CDBTransactionIterator< CDBTransaction >::SkipDeletedAndOverwritten(), and CDBTransactionIterator< CDBTransaction >::Valid().
◆ transactionIt
|
private |
Definition at line 412 of file dbwrapper.h.
Referenced by CDBTransactionIterator< CDBTransaction >::CDBTransactionIterator(), CDBTransactionIterator< CDBTransaction >::DecideCur(), CDBTransactionIterator< CDBTransaction >::GetKey(), CDBTransactionIterator< CDBTransaction >::GetKeySize(), CDBTransactionIterator< CDBTransaction >::GetValue(), CDBTransactionIterator< CDBTransaction >::Next(), CDBTransactionIterator< CDBTransaction >::Seek(), CDBTransactionIterator< CDBTransaction >::SeekToFirst(), and CDBTransactionIterator< CDBTransaction >::Valid().
The documentation for this class was generated from the following file:
- src/dbwrapper.h