Dash Core  0.12.2.1
P2P Digital Currency
CDBBatch Class Reference

#include <dbwrapper.h>

Public Member Functions

 CDBBatch (const std::vector< unsigned char > *obfuscate_key)
 
template<typename K , typename V >
void Write (const K &key, const V &value)
 
template<typename K >
void Erase (const K &key)
 

Private Attributes

leveldb::WriteBatch batch
 
const std::vector< unsigned char > * obfuscate_key
 

Friends

class CDBWrapper
 

Detailed Description

Batch of changes queued to be written to a CDBWrapper

Definition at line 29 of file dbwrapper.h.

Constructor & Destructor Documentation

◆ CDBBatch()

CDBBatch::CDBBatch ( const std::vector< unsigned char > *  obfuscate_key)
inline
Parameters
[in]obfuscate_keyIf passed, XOR data with this key.

Definition at line 41 of file dbwrapper.h.

Member Function Documentation

◆ Erase()

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

◆ Write()

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

Friends And Related Function Documentation

◆ CDBWrapper

friend class CDBWrapper
friend

Definition at line 31 of file dbwrapper.h.

Member Data Documentation

◆ batch

leveldb::WriteBatch CDBBatch::batch
private

Definition at line 34 of file dbwrapper.h.

Referenced by Erase(), and Write().

◆ obfuscate_key

const std::vector<unsigned char>* CDBBatch::obfuscate_key
private

Definition at line 35 of file dbwrapper.h.

Referenced by Write().


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