Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Protected Attributes | Friends | List of all members
dev::MemoryDB Class Reference

#include <MemoryDB.h>

Inheritance diagram for dev::MemoryDB:
[legend]

Public Member Functions

 MemoryDB ()
 
 MemoryDB (MemoryDB const &_c)
 
MemoryDBoperator= (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
 

Detailed Description

Definition at line 41 of file MemoryDB.h.

Constructor & Destructor Documentation

dev::MemoryDB::MemoryDB ( )
inline

Definition at line 46 of file MemoryDB.h.

dev::MemoryDB::MemoryDB ( MemoryDB const &  _c)
inline

Definition at line 47 of file MemoryDB.h.

Member Function Documentation

void dev::MemoryDB::clear ( )
inline

Definition at line 51 of file MemoryDB.h.

Here is the caller graph for this function:

bool dev::MemoryDB::exists ( h256 const &  _h) const

Definition at line 74 of file MemoryDB.cpp.

Here is the caller graph for this function:

std::unordered_map< h256, std::string > dev::MemoryDB::get ( ) const

Definition at line 33 of file MemoryDB.cpp.

Here is the caller graph for this function:

void dev::MemoryDB::insert ( h256 const &  _h,
bytesConstRef  _v 
)

Definition at line 85 of file MemoryDB.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void dev::MemoryDB::insertAux ( h256 const &  _h,
bytesConstRef  _v 
)

Definition at line 151 of file MemoryDB.cpp.

Here is the call graph for this function:

h256Hash dev::MemoryDB::keys ( ) const

Definition at line 179 of file MemoryDB.cpp.

Here is the caller graph for this function:

bool dev::MemoryDB::kill ( h256 const &  _h)

Definition at line 103 of file MemoryDB.cpp.

Here is the caller graph for this function:

std::string dev::MemoryDB::lookup ( h256 const &  _h) const

Definition at line 58 of file MemoryDB.cpp.

Here is the caller graph for this function:

bytes dev::MemoryDB::lookupAux ( h256 const &  _h) const

Definition at line 132 of file MemoryDB.cpp.

MemoryDB & dev::MemoryDB::operator= ( MemoryDB const &  _c)

Definition at line 45 of file MemoryDB.cpp.

void dev::MemoryDB::purge ( )

Definition at line 159 of file MemoryDB.cpp.

Here is the caller graph for this function:

void dev::MemoryDB::removeAux ( h256 const &  _h)

Definition at line 143 of file MemoryDB.cpp.

Friends And Related Function Documentation

friend class EnforceRefs
friend

Definition at line 43 of file MemoryDB.h.

Member Data Documentation

std::unordered_map<h256, std::pair<bytes, bool> > dev::MemoryDB::m_aux
protected

Definition at line 71 of file MemoryDB.h.

bool dev::MemoryDB::m_enforceRefs = false
mutableprotected

Definition at line 73 of file MemoryDB.h.

std::unordered_map<h256, std::pair<std::string, unsigned> > dev::MemoryDB::m_main
protected

Definition at line 70 of file MemoryDB.h.


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