Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <MemoryDB.h>
Public Member Functions | |
MemoryDB () | |
MemoryDB (MemoryDB const &_c) | |
MemoryDB & | operator= (MemoryDB const &_c) |
void | clear () |
std::unordered_map< h256, std::string > | get () const |
std::string | lookup (h256 const &_h) const |
bool | exists (h256 const &_h) const |
void | insert (h256 const &_h, bytesConstRef _v) |
bool | kill (h256 const &_h) |
void | purge () |
bytes | lookupAux (h256 const &_h) const |
void | removeAux (h256 const &_h) |
void | insertAux (h256 const &_h, bytesConstRef _v) |
h256Hash | keys () const |
Protected Attributes | |
std::unordered_map< h256, std::pair< std::string, unsigned > > | m_main |
std::unordered_map< h256, std::pair< bytes, bool > > | m_aux |
bool | m_enforceRefs = false |
Friends | |
class | EnforceRefs |
Definition at line 41 of file MemoryDB.h.
|
inline |
Definition at line 46 of file MemoryDB.h.
|
inline |
Definition at line 47 of file MemoryDB.h.
|
inline |
bool dev::MemoryDB::exists | ( | h256 const & | _h | ) | const |
std::unordered_map< h256, std::string > dev::MemoryDB::get | ( | ) | const |
void dev::MemoryDB::insert | ( | h256 const & | _h, |
bytesConstRef | _v | ||
) |
Definition at line 85 of file MemoryDB.cpp.
void dev::MemoryDB::insertAux | ( | h256 const & | _h, |
bytesConstRef | _v | ||
) |
h256Hash dev::MemoryDB::keys | ( | ) | const |
bool dev::MemoryDB::kill | ( | h256 const & | _h | ) |
std::string dev::MemoryDB::lookup | ( | h256 const & | _h | ) | const |
Definition at line 132 of file MemoryDB.cpp.
Definition at line 45 of file MemoryDB.cpp.
void dev::MemoryDB::purge | ( | ) |
void dev::MemoryDB::removeAux | ( | h256 const & | _h | ) |
Definition at line 143 of file MemoryDB.cpp.
|
friend |
Definition at line 43 of file MemoryDB.h.
Definition at line 71 of file MemoryDB.h.
|
mutableprotected |
Definition at line 73 of file MemoryDB.h.
|
protected |
Definition at line 70 of file MemoryDB.h.