![]() |
Ethereum
PoC-8
The C++ Implementation of Ethereum
|
#include <OverlayDB.h>
Public Member Functions | |
| OverlayDB (std::unique_ptr< db::DatabaseFace > _db=nullptr) | |
| ~OverlayDB () | |
| OverlayDB (OverlayDB const &)=default | |
| OverlayDB & | operator= (OverlayDB const &)=default |
| OverlayDB (OverlayDB &&)=default | |
| OverlayDB & | operator= (OverlayDB &&)=default |
| void | commit () |
| void | rollback () |
| std::string | lookup (h256 const &_h) const |
| bool | exists (h256 const &_h) const |
| void | kill (h256 const &_h) |
| bytes | lookupAux (h256 const &_h) const |
Public Member Functions inherited from dev::StateCacheDB | |
| StateCacheDB () | |
| StateCacheDB (StateCacheDB const &_c) | |
| StateCacheDB & | operator= (StateCacheDB const &_c) |
| virtual | ~StateCacheDB ()=default |
| 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 |
Additional Inherited Members | |
Protected Attributes inherited from dev::StateCacheDB | |
| 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.
|
inlineexplicit |
Definition at line 36 of file OverlayDB.h.
|
default |
|
default |
|
default |
| void dev::OverlayDB::commit | ( | ) |
Definition at line 48 of file OverlayDB.cpp.
| bool dev::OverlayDB::exists | ( | h256 const & | _h | ) | const |
Definition at line 134 of file OverlayDB.cpp.
| void dev::OverlayDB::kill | ( | h256 const & | _h | ) |
Definition at line 141 of file OverlayDB.cpp.
| std::string dev::OverlayDB::lookup | ( | h256 const & | _h | ) | const |
Definition at line 125 of file OverlayDB.cpp.
Definition at line 102 of file OverlayDB.cpp.
| void dev::OverlayDB::rollback | ( | ) |
Definition at line 117 of file OverlayDB.cpp.