![]() |
Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <OverlayDB.h>
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) | |
| 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 |
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 |
Definition at line 33 of file OverlayDB.h.
|
inline |
| dev::OverlayDB::~OverlayDB | ( | ) |
| void dev::OverlayDB::commit | ( | ) |
|
inline |
Definition at line 39 of file OverlayDB.h.
| bool dev::OverlayDB::deepkill | ( | h256 const & | _h | ) |
Definition at line 158 of file OverlayDB.cpp.
| bool dev::OverlayDB::exists | ( | h256 const & | _h | ) | const |
Definition at line 128 of file OverlayDB.cpp.
| void dev::OverlayDB::kill | ( | h256 const & | _h | ) |
Definition at line 138 of file OverlayDB.cpp.
| std::string dev::OverlayDB::lookup | ( | h256 const & | _h | ) | const |
Definition at line 120 of file OverlayDB.cpp.
Definition at line 98 of file OverlayDB.cpp.
| void dev::OverlayDB::rollback | ( | ) |
|
private |
Definition at line 54 of file OverlayDB.h.
|
private |
Definition at line 56 of file OverlayDB.h.
|
private |
Definition at line 57 of file OverlayDB.h.
1.8.11