Raven Core  3.0.0
P2P Digital Currency
Public Member Functions | List of all members
CMessageDB Class Reference

#include <messagedb.h>

Inheritance diagram for CMessageDB:
[legend]
Collaboration diagram for CMessageDB:
[legend]

Public Member Functions

 CMessageDB (size_t nCacheSize, bool fMemory=false, bool fWipe=false)
 
 CMessageDB (const CMessageDB &)=delete
 
CMessageDBoperator= (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 ()
 
- Public Member Functions inherited from CDBWrapper
 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 ()
 
CDBIteratorNewIterator ()
 
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...
 

Detailed Description

Definition at line 13 of file messagedb.h.

Constructor & Destructor Documentation

◆ CMessageDB() [1/2]

CMessageDB::CMessageDB ( size_t  nCacheSize,
bool  fMemory = false,
bool  fWipe = false 
)
explicit

Definition at line 14 of file messagedb.cpp.

◆ CMessageDB() [2/2]

CMessageDB::CMessageDB ( const CMessageDB )
delete

Member Function Documentation

◆ EraseAllMessages()

bool CMessageDB::EraseAllMessages ( int &  count)

Definition at line 58 of file messagedb.cpp.

◆ EraseMessage()

bool CMessageDB::EraseMessage ( const COutPoint out)

Definition at line 27 of file messagedb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Flush()

bool CMessageDB::Flush ( )

Definition at line 90 of file messagedb.cpp.

Here is the call graph for this function:

◆ LoadMessages()

bool CMessageDB::LoadMessages ( std::set< CMessage > &  setMessages)

Definition at line 32 of file messagedb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

CMessageDB& CMessageDB::operator= ( const CMessageDB )
delete

◆ ReadFlag()

bool CMessageDB::ReadFlag ( const std::string &  name,
bool &  fValue 
)

Definition at line 168 of file messagedb.cpp.

Here is the call graph for this function:

◆ ReadMessage()

bool CMessageDB::ReadMessage ( const COutPoint out,
CMessage message 
)

Definition at line 22 of file messagedb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteFlag()

bool CMessageDB::WriteFlag ( const std::string &  name,
bool  fValue 
)

Definition at line 163 of file messagedb.cpp.

Here is the call graph for this function:

◆ WriteMessage()

bool CMessageDB::WriteMessage ( const CMessage message)

Definition at line 17 of file messagedb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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