Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
wallet::BerkeleyCursor Class Reference

#include <bdb.h>

Inheritance diagram for wallet::BerkeleyCursor:
[legend]
Collaboration diagram for wallet::BerkeleyCursor:
[legend]

Public Member Functions

 BerkeleyCursor (BerkeleyDatabase &database, const BerkeleyBatch &batch, Span< const std::byte > prefix={})
 
 ~BerkeleyCursor () override
 
Status Next (DataStream &key, DataStream &value) override
 
Dbc * dbc () const
 
- Public Member Functions inherited from wallet::DatabaseCursor
 DatabaseCursor ()=default
 
virtual ~DatabaseCursor ()=default
 
 DatabaseCursor (const DatabaseCursor &)=delete
 
DatabaseCursoroperator= (const DatabaseCursor &)=delete
 
virtual Status Next (DataStream &key, DataStream &value)
 

Private Attributes

Dbc * m_cursor
 
std::vector< std::byte > m_key_prefix
 
bool m_first {true}
 

Additional Inherited Members

- Public Types inherited from wallet::DatabaseCursor
enum class  Status { FAIL , MORE , DONE }
 

Detailed Description

Definition at line 160 of file bdb.h.

Constructor & Destructor Documentation

◆ BerkeleyCursor()

wallet::BerkeleyCursor::BerkeleyCursor ( BerkeleyDatabase database,
const BerkeleyBatch batch,
Span< const std::byte >  prefix = {} 
)
explicit

Definition at line 729 of file bdb.cpp.

Here is the call graph for this function:

◆ ~BerkeleyCursor()

wallet::BerkeleyCursor::~BerkeleyCursor ( )
override

Definition at line 776 of file bdb.cpp.

Member Function Documentation

◆ dbc()

Dbc * wallet::BerkeleyCursor::dbc ( ) const
inline

Definition at line 174 of file bdb.h.

◆ Next()

DatabaseCursor::Status wallet::BerkeleyCursor::Next ( DataStream key,
DataStream value 
)
overridevirtual

Reimplemented from wallet::DatabaseCursor.

Definition at line 743 of file bdb.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_cursor

Dbc* wallet::BerkeleyCursor::m_cursor
private

Definition at line 163 of file bdb.h.

◆ m_first

bool wallet::BerkeleyCursor::m_first {true}
private

Definition at line 165 of file bdb.h.

◆ m_key_prefix

std::vector<std::byte> wallet::BerkeleyCursor::m_key_prefix
private

Definition at line 164 of file bdb.h.


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