Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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 (std::span< const std::byte > key)
std::span< const std::byte > GetKeyImpl () const
std::span< const std::byte > GetValueImpl () const

Private Attributes

const CDBWrapperparent
const std::unique_ptr< IteratorImplm_impl_iter

Detailed Description

Definition at line 119 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 357 of file dbwrapper.cpp.

◆ ~CDBIterator()

CDBIterator::~CDBIterator ( )
default

Member Function Documentation

◆ GetKey()

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

Definition at line 154 of file dbwrapper.h.

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

◆ GetKeyImpl()

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

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

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

◆ GetValueImpl()

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

Definition at line 376 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 384 of file dbwrapper.cpp.

◆ Seek()

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

Definition at line 145 of file dbwrapper.h.

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

◆ SeekImpl()

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

Definition at line 365 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 383 of file dbwrapper.cpp.

◆ Valid()

bool CDBIterator::Valid ( ) const

Definition at line 382 of file dbwrapper.cpp.

Member Data Documentation

◆ m_impl_iter

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

Definition at line 126 of file dbwrapper.h.

◆ parent

const CDBWrapper& CDBIterator::parent
private

Definition at line 125 of file dbwrapper.h.


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