Bitcoin ABC 0.30.3
P2P Digital Currency
Public Member Functions | Private Member Functions | List of all members
DummyBatch Class Reference

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

#include <db.h>

Inheritance diagram for DummyBatch:
[legend]
Collaboration diagram for 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 DatabaseBatch
 DatabaseBatch ()
 
virtual ~DatabaseBatch ()
 
 DatabaseBatch (const DatabaseBatch &)=delete
 
DatabaseBatchoperator= (const DatabaseBatch &)=delete
 
virtual void Flush ()=0
 
virtual void Close ()=0
 
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)
 
virtual bool StartCursor ()=0
 
virtual bool ReadAtCursor (CDataStream &ssKey, CDataStream &ssValue, bool &complete)=0
 
virtual void CloseCursor ()=0
 
virtual bool TxnBegin ()=0
 
virtual bool TxnCommit ()=0
 
virtual bool TxnAbort ()=0
 

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 167 of file db.h.

Member Function Documentation

◆ Close()

void DummyBatch::Close ( )
inlineoverridevirtual

Implements DatabaseBatch.

Definition at line 181 of file db.h.

◆ CloseCursor()

void DummyBatch::CloseCursor ( )
inlineoverridevirtual

Implements DatabaseBatch.

Definition at line 188 of file db.h.

◆ EraseKey()

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

Implements DatabaseBatch.

Definition at line 176 of file db.h.

◆ Flush()

void DummyBatch::Flush ( )
inlineoverridevirtual

Implements DatabaseBatch.

Definition at line 180 of file db.h.

◆ HasKey()

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

Implements DatabaseBatch.

Definition at line 177 of file db.h.

◆ ReadAtCursor()

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

Implements DatabaseBatch.

Definition at line 184 of file db.h.

◆ ReadKey()

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

Implements DatabaseBatch.

Definition at line 169 of file db.h.

◆ StartCursor()

bool DummyBatch::StartCursor ( )
inlineoverridevirtual

Implements DatabaseBatch.

Definition at line 183 of file db.h.

◆ TxnAbort()

bool DummyBatch::TxnAbort ( )
inlineoverridevirtual

Implements DatabaseBatch.

Definition at line 191 of file db.h.

◆ TxnBegin()

bool DummyBatch::TxnBegin ( )
inlineoverridevirtual

Implements DatabaseBatch.

Definition at line 189 of file db.h.

◆ TxnCommit()

bool DummyBatch::TxnCommit ( )
inlineoverridevirtual

Implements DatabaseBatch.

Definition at line 190 of file db.h.

◆ WriteKey()

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

Implements DatabaseBatch.

Definition at line 172 of file db.h.


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