#include <messagedb.h>
|
| CMessageDB (size_t nCacheSize, bool fMemory=false, bool fWipe=false) |
|
| CMessageDB (const CMessageDB &)=delete |
|
CMessageDB & | operator= (const CMessageDB &)=delete |
|
bool | WriteMessage (const CMessage &message) |
|
bool | ReadMessage (const COutPoint &out, CMessage &message) |
|
bool | EraseMessage (const COutPoint &out) |
|
bool | LoadMessages (std::set< CMessage > &setMessages) |
|
bool | EraseAllMessages (int &count) |
|
bool | WriteFlag (const std::string &name, bool fValue) |
|
bool | ReadFlag (const std::string &name, bool &fValue) |
|
bool | Flush () |
|
| CDBWrapper (const fs::path &path, size_t nCacheSize, bool fMemory=false, bool fWipe=false, bool obfuscate=false, size_t maxFileSize=2<< 20) |
|
| ~CDBWrapper () |
|
template<typename K , typename V > |
bool | Read (const K &key, V &value) const |
|
template<typename K , typename V > |
bool | Write (const K &key, const V &value, bool fSync=false) |
|
template<typename K > |
bool | Exists (const K &key) const |
|
template<typename K > |
bool | Erase (const K &key, bool fSync=false) |
|
bool | WriteBatch (CDBBatch &batch, bool fSync=false) |
|
bool | Flush () |
|
bool | Sync () |
|
CDBIterator * | NewIterator () |
|
bool | IsEmpty () |
| Return true if the database managed by this class contains no entries. More...
|
|
template<typename K > |
size_t | EstimateSize (const K &key_begin, const K &key_end) const |
|
template<typename K > |
void | CompactRange (const K &key_begin, const K &key_end) const |
| Compact a certain range of keys in the database. More...
|
|
Definition at line 13 of file messagedb.h.
◆ CMessageDB() [1/2]
CMessageDB::CMessageDB |
( |
size_t |
nCacheSize, |
|
|
bool |
fMemory = false , |
|
|
bool |
fWipe = false |
|
) |
| |
|
explicit |
◆ CMessageDB() [2/2]
◆ EraseAllMessages()
bool CMessageDB::EraseAllMessages |
( |
int & |
count | ) |
|
◆ EraseMessage()
bool CMessageDB::EraseMessage |
( |
const COutPoint & |
out | ) |
|
◆ Flush()
bool CMessageDB::Flush |
( |
| ) |
|
◆ LoadMessages()
bool CMessageDB::LoadMessages |
( |
std::set< CMessage > & |
setMessages | ) |
|
◆ operator=()
◆ ReadFlag()
bool CMessageDB::ReadFlag |
( |
const std::string & |
name, |
|
|
bool & |
fValue |
|
) |
| |
◆ ReadMessage()
◆ WriteFlag()
bool CMessageDB::WriteFlag |
( |
const std::string & |
name, |
|
|
bool |
fValue |
|
) |
| |
◆ WriteMessage()
bool CMessageDB::WriteMessage |
( |
const CMessage & |
message | ) |
|
The documentation for this class was generated from the following files: