Fabcoin Core  0.16.2
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 47 of file dbwrapper.h.

Constructor & Destructor Documentation

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

Definition at line 64 of file dbwrapper.h.

Member Function Documentation

void CDBBatch::Clear ( )
inline

Definition at line 66 of file dbwrapper.h.

Here is the caller graph for this function:

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

Definition at line 98 of file dbwrapper.h.

Here is the call graph for this function:

Here is the caller graph for this function:

size_t CDBBatch::SizeEstimate ( ) const
inline

Definition at line 114 of file dbwrapper.h.

Here is the caller graph for this function:

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

Definition at line 73 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

friend class CDBWrapper
friend

Definition at line 49 of file dbwrapper.h.

Member Data Documentation

leveldb::WriteBatch CDBBatch::batch
private

Definition at line 53 of file dbwrapper.h.

const CDBWrapper& CDBBatch::parent
private

Definition at line 52 of file dbwrapper.h.

size_t CDBBatch::size_estimate
private

Definition at line 58 of file dbwrapper.h.

CDataStream CDBBatch::ssKey
private

Definition at line 55 of file dbwrapper.h.

CDataStream CDBBatch::ssValue
private

Definition at line 56 of file dbwrapper.h.


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