Bitcoin ABC 0.30.7
P2P Digital Currency
Public Member Functions | Private Attributes | Friends | List of all members
CDBBatch Class Reference

Batch of changes queued to be written to a CDBWrapper. More...

#include <dbwrapper.h>

Collaboration diagram for CDBBatch:
[legend]

Public Member Functions

 CDBBatch (const CDBWrapper &_parent)
 
void Clear ()
 
template<typename K , typename V >
void Write (const K &key, const V &value)
 
template<typename K >
void Erase (const K &key)
 
size_t SizeEstimate () const
 

Private Attributes

const CDBWrapperparent
 
leveldb::WriteBatch batch
 
CDataStream ssKey
 
CDataStream ssValue
 
size_t size_estimate
 

Friends

class CDBWrapper
 

Detailed Description

Batch of changes queued to be written to a CDBWrapper.

Definition at line 78 of file dbwrapper.h.

Constructor & Destructor Documentation

◆ CDBBatch()

CDBBatch::CDBBatch ( const CDBWrapper _parent)
inlineexplicit
Parameters
[in]_parentCDBWrapper that this batch is to be submitted to

Definition at line 94 of file dbwrapper.h.

Member Function Documentation

◆ Clear()

void CDBBatch::Clear ( )
inline

Definition at line 98 of file dbwrapper.h.

Here is the caller graph for this function:

◆ Erase()

template<typename K >
void CDBBatch::Erase ( const K &  key)
inline

Definition at line 127 of file dbwrapper.h.

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

◆ SizeEstimate()

size_t CDBBatch::SizeEstimate ( ) const
inline

Definition at line 142 of file dbwrapper.h.

Here is the caller graph for this function:

◆ Write()

template<typename K , typename V >
void CDBBatch::Write ( const K &  key,
const V &  value 
)
inline

Definition at line 103 of file dbwrapper.h.

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

Friends And Related Function Documentation

◆ CDBWrapper

friend class CDBWrapper
friend

Definition at line 79 of file dbwrapper.h.

Member Data Documentation

◆ batch

leveldb::WriteBatch CDBBatch::batch
private

Definition at line 83 of file dbwrapper.h.

◆ parent

const CDBWrapper& CDBBatch::parent
private

Definition at line 82 of file dbwrapper.h.

◆ size_estimate

size_t CDBBatch::size_estimate
private

Definition at line 88 of file dbwrapper.h.

◆ ssKey

CDataStream CDBBatch::ssKey
private

Definition at line 85 of file dbwrapper.h.

◆ ssValue

CDataStream CDBBatch::ssValue
private

Definition at line 86 of file dbwrapper.h.


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