Bitcoin Core 28.99.0
P2P Digital Currency
|
Batch of changes queued to be written to a CDBWrapper. More...
#include <dbwrapper.h>
Classes | |
struct | WriteBatchImpl |
Public Member Functions | |
CDBBatch (const CDBWrapper &_parent) | |
~CDBBatch () | |
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 Member Functions | |
void | WriteImpl (Span< const std::byte > key, DataStream &ssValue) |
void | EraseImpl (Span< const std::byte > key) |
Private Attributes | |
const CDBWrapper & | parent |
const std::unique_ptr< WriteBatchImpl > | m_impl_batch |
DataStream | ssKey {} |
DataStream | ssValue {} |
size_t | size_estimate {0} |
Friends | |
class | CDBWrapper |
Batch of changes queued to be written to a CDBWrapper.
Definition at line 73 of file dbwrapper.h.
|
explicit |
[in] | _parent | CDBWrapper that this batch is to be submitted to |
Definition at line 159 of file dbwrapper.cpp.
|
default |
void CDBBatch::Clear | ( | ) |
Definition at line 112 of file dbwrapper.h.
|
private |
Definition at line 187 of file dbwrapper.cpp.
|
inline |
Definition at line 100 of file dbwrapper.h.
|
private |
Definition at line 171 of file dbwrapper.cpp.
|
friend |
Definition at line 75 of file dbwrapper.h.
|
private |
Definition at line 81 of file dbwrapper.h.
|
private |
Definition at line 78 of file dbwrapper.h.
|
private |
Definition at line 86 of file dbwrapper.h.
|
private |
Definition at line 83 of file dbwrapper.h.
|
private |
Definition at line 84 of file dbwrapper.h.