Bitcoin Core  27.99.0
P2P Digital Currency
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CDBIterator Class Reference

#include <dbwrapper.h>

Collaboration diagram for CDBIterator:
[legend]

Classes

struct  IteratorImpl
 

Public Member Functions

 CDBIterator (const CDBWrapper &_parent, std::unique_ptr< IteratorImpl > _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)
 

Private Member Functions

void SeekImpl (Span< const std::byte > key)
 
Span< const std::byte > GetKeyImpl () const
 
Span< const std::byte > GetValueImpl () const
 

Private Attributes

const CDBWrapperparent
 
const std::unique_ptr< IteratorImplm_impl_iter
 

Detailed Description

Definition at line 122 of file dbwrapper.h.

Constructor & Destructor Documentation

◆ CDBIterator()

CDBIterator::CDBIterator ( const CDBWrapper _parent,
std::unique_ptr< IteratorImpl _piter 
)
Parameters
[in]_parentParent CDBWrapper instance.
[in]_piterThe original leveldb iterator.

Definition at line 390 of file dbwrapper.cpp.

◆ ~CDBIterator()

CDBIterator::~CDBIterator ( )
default

Member Function Documentation

◆ GetKey()

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

Definition at line 157 of file dbwrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetKeyImpl()

Span< const std::byte > CDBIterator::GetKeyImpl ( ) const
private

Definition at line 404 of file dbwrapper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetValue()

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

Definition at line 167 of file dbwrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetValueImpl()

Span< const std::byte > CDBIterator::GetValueImpl ( ) const
private

Definition at line 409 of file dbwrapper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Next()

void CDBIterator::Next ( )

Definition at line 417 of file dbwrapper.cpp.

Here is the caller graph for this function:

◆ Seek()

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

Definition at line 148 of file dbwrapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SeekImpl()

void CDBIterator::SeekImpl ( Span< const std::byte >  key)
private

Definition at line 398 of file dbwrapper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SeekToFirst()

void CDBIterator::SeekToFirst ( )

Definition at line 416 of file dbwrapper.cpp.

◆ Valid()

bool CDBIterator::Valid ( ) const

Definition at line 415 of file dbwrapper.cpp.

Member Data Documentation

◆ m_impl_iter

const std::unique_ptr<IteratorImpl> CDBIterator::m_impl_iter
private

Definition at line 129 of file dbwrapper.h.

◆ parent

const CDBWrapper& CDBIterator::parent
private

Definition at line 128 of file dbwrapper.h.


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