Bitcoin Core  22.99.0
P2P Digital Currency
Public Member Functions | Private Member Functions | List of all members
wallet::DummyBatch Class Reference

RAII class that provides access to a DummyDatabase. More...

#include <db.h>

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

Public Member Functions

void Flush () override
 
void Close () override
 
bool StartCursor () override
 
bool ReadAtCursor (CDataStream &ssKey, CDataStream &ssValue, bool &complete) override
 
void CloseCursor () override
 
bool TxnBegin () override
 
bool TxnCommit () override
 
bool TxnAbort () override
 
- Public Member Functions inherited from wallet::DatabaseBatch
 DatabaseBatch ()
 
virtual ~DatabaseBatch ()
 
 DatabaseBatch (const DatabaseBatch &)=delete
 
DatabaseBatchoperator= (const DatabaseBatch &)=delete
 
template<typename K , typename T >
bool Read (const K &key, T &value)
 
template<typename K , typename T >
bool Write (const K &key, const T &value, bool fOverwrite=true)
 
template<typename K >
bool Erase (const K &key)
 
template<typename K >
bool Exists (const K &key)
 

Private Member Functions

bool ReadKey (CDataStream &&key, CDataStream &value) override
 
bool WriteKey (CDataStream &&key, CDataStream &&value, bool overwrite=true) override
 
bool EraseKey (CDataStream &&key) override
 
bool HasKey (CDataStream &&key) override
 

Detailed Description

RAII class that provides access to a DummyDatabase.

Never fails.

Definition at line 159 of file db.h.

Member Function Documentation

◆ Close()

void wallet::DummyBatch::Close ( )
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 169 of file db.h.

◆ CloseCursor()

void wallet::DummyBatch::CloseCursor ( )
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 173 of file db.h.

◆ EraseKey()

bool wallet::DummyBatch::EraseKey ( CDataStream &&  key)
inlineoverrideprivatevirtual

Implements wallet::DatabaseBatch.

Definition at line 164 of file db.h.

◆ Flush()

void wallet::DummyBatch::Flush ( )
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 168 of file db.h.

◆ HasKey()

bool wallet::DummyBatch::HasKey ( CDataStream &&  key)
inlineoverrideprivatevirtual

Implements wallet::DatabaseBatch.

Definition at line 165 of file db.h.

◆ ReadAtCursor()

bool wallet::DummyBatch::ReadAtCursor ( CDataStream ssKey,
CDataStream ssValue,
bool &  complete 
)
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 172 of file db.h.

◆ ReadKey()

bool wallet::DummyBatch::ReadKey ( CDataStream &&  key,
CDataStream value 
)
inlineoverrideprivatevirtual

Implements wallet::DatabaseBatch.

Definition at line 162 of file db.h.

◆ StartCursor()

bool wallet::DummyBatch::StartCursor ( )
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 171 of file db.h.

◆ TxnAbort()

bool wallet::DummyBatch::TxnAbort ( )
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 176 of file db.h.

◆ TxnBegin()

bool wallet::DummyBatch::TxnBegin ( )
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 174 of file db.h.

◆ TxnCommit()

bool wallet::DummyBatch::TxnCommit ( )
inlineoverridevirtual

Implements wallet::DatabaseBatch.

Definition at line 175 of file db.h.

◆ WriteKey()

bool wallet::DummyBatch::WriteKey ( CDataStream &&  key,
CDataStream &&  value,
bool  overwrite = true 
)
inlineoverrideprivatevirtual

Implements wallet::DatabaseBatch.

Definition at line 163 of file db.h.


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