![]() |
Bitcoin Core 30.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 | ApproximateSize () const |
Private Member Functions | |
| void | WriteImpl (std::span< const std::byte > key, DataStream &ssValue) |
| void | EraseImpl (std::span< const std::byte > key) |
Private Attributes | |
| const CDBWrapper & | parent |
| const std::unique_ptr< WriteBatchImpl > | m_impl_batch |
| DataStream | ssKey {} |
| DataStream | ssValue {} |
Friends | |
| class | CDBWrapper |
Batch of changes queued to be written to a CDBWrapper.
Definition at line 71 of file dbwrapper.h.
|
explicit |
| [in] | _parent | CDBWrapper that this batch is to be submitted to |
Definition at line 160 of file dbwrapper.cpp.
|
default |
| size_t CDBBatch::ApproximateSize | ( | ) | const |
| void CDBBatch::Clear | ( | ) |
Definition at line 108 of file dbwrapper.h.
|
private |
Definition at line 182 of file dbwrapper.cpp.
Definition at line 96 of file dbwrapper.h.
|
private |
Definition at line 174 of file dbwrapper.cpp.
|
friend |
Definition at line 73 of file dbwrapper.h.
|
private |
Definition at line 79 of file dbwrapper.h.
|
private |
Definition at line 76 of file dbwrapper.h.
|
private |
Definition at line 81 of file dbwrapper.h.
|
private |
Definition at line 82 of file dbwrapper.h.