Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
dev::OverlayDB Class Reference

#include <OverlayDB.h>

Inheritance diagram for dev::OverlayDB:
[legend]
Collaboration diagram for dev::OverlayDB:
[legend]

Public Member Functions

 OverlayDB (ldb::DB *_db=nullptr)
 
 ~OverlayDB ()
 
ldb::DB * db () const
 
void commit ()
 
void rollback ()
 
std::string lookup (h256 const &_h) const
 
bool exists (h256 const &_h) const
 
void kill (h256 const &_h)
 
bool deepkill (h256 const &_h)
 
bytes lookupAux (h256 const &_h) const
 
- Public Member Functions inherited from dev::MemoryDB
 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
 

Private Attributes

std::shared_ptr< ldb::DB > m_db
 
ldb::ReadOptions m_readOptions
 
ldb::WriteOptions m_writeOptions
 

Additional Inherited Members

- Protected Attributes inherited from dev::MemoryDB
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
 

Detailed Description

Definition at line 33 of file OverlayDB.h.

Constructor & Destructor Documentation

dev::OverlayDB::OverlayDB ( ldb::DB *  _db = nullptr)
inline

Definition at line 36 of file OverlayDB.h.

Here is the call graph for this function:

dev::OverlayDB::~OverlayDB ( )

Definition at line 35 of file OverlayDB.cpp.

Here is the caller graph for this function:

Member Function Documentation

void dev::OverlayDB::commit ( )

Definition at line 47 of file OverlayDB.cpp.

Here is the caller graph for this function:

ldb::DB* dev::OverlayDB::db ( ) const
inline

Definition at line 39 of file OverlayDB.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool dev::OverlayDB::deepkill ( h256 const &  _h)

Definition at line 158 of file OverlayDB.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 128 of file OverlayDB.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void dev::OverlayDB::kill ( h256 const &  _h)

Definition at line 138 of file OverlayDB.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 120 of file OverlayDB.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 98 of file OverlayDB.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void dev::OverlayDB::rollback ( )

Definition at line 112 of file OverlayDB.cpp.

Here is the caller graph for this function:

Member Data Documentation

std::shared_ptr<ldb::DB> dev::OverlayDB::m_db
private

Definition at line 54 of file OverlayDB.h.

ldb::ReadOptions dev::OverlayDB::m_readOptions
private

Definition at line 56 of file OverlayDB.h.

ldb::WriteOptions dev::OverlayDB::m_writeOptions
private

Definition at line 57 of file OverlayDB.h.


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