Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Public Types | Public Member Functions | Private Types | List of all members
dev::FatGenericTrieDB< _DB > Class Template Reference

#include <TrieDB.h>

Inheritance diagram for dev::FatGenericTrieDB< _DB >:
[legend]
Collaboration diagram for dev::FatGenericTrieDB< _DB >:
[legend]

Classes

class  HashedIterator
 
class  iterator
 

Public Types

using DB = _DB
 

Public Member Functions

 FatGenericTrieDB (DB *_db=nullptr)
 
 FatGenericTrieDB (DB *_db, h256 _root, Verification _v=Verification::Normal)
 
std::string at (bytesConstRef _key) const
 
bool contains (bytesConstRef _key)
 
void insert (bytesConstRef _key, bytesConstRef _value)
 
void remove (bytesConstRef _key)
 
iterator begin () const
 
iterator end () const
 
HashedIterator hashedBegin () const
 
HashedIterator hashedEnd () const
 

Private Types

using Super = SpecificTrieDB< GenericTrieDB< _DB >, h256 >
 
- Private Types inherited from dev::SpecificTrieDB< GenericTrieDB< _DB >, h256 >
using DB = typename GenericTrieDB< _DB >::DB
 
using KeyType = h256
 
- Private Types inherited from dev::GenericTrieDB< _DB >
using DB = _DB
 

Additional Inherited Members

- Private Member Functions inherited from dev::SpecificTrieDB< GenericTrieDB< _DB >, h256 >
 SpecificTrieDB (DB *_db=nullptr)
 
 SpecificTrieDB (DB *_db, h256 _root, Verification _v=Verification::Normal)
 
std::string operator[] (KeyType _k) const
 
bool contains (KeyType _k) const
 
std::string at (KeyType _k) const
 
void insert (KeyType _k, bytesConstRef _value)
 
void insert (KeyType _k, bytes const &_value)
 
void remove (KeyType _k)
 
iterator begin () const
 
iterator end () const
 
iterator lower_bound (KeyType _k) const
 
- Private Member Functions inherited from dev::GenericTrieDB< _DB >
 GenericTrieDB (DB *_db=nullptr)
 
 GenericTrieDB (DB *_db, h256 const &_root, Verification _v=Verification::Normal)
 
 ~GenericTrieDB ()
 
void open (DB *_db)
 
void open (DB *_db, h256 const &_root, Verification _v=Verification::Normal)
 
void init ()
 
void setRoot (h256 const &_root, Verification _v=Verification::Normal)
 
bool isNull () const
 True if the trie is uninitialised (i.e. that the DB doesn't contain the root node). More...
 
bool isEmpty () const
 True if the trie is initialised but empty (i.e. that the DB contains the root node which is empty). More...
 
h256 const & root () const
 
std::string at (bytes const &_key) const
 
std::string at (bytesConstRef _key) const
 
void insert (bytes const &_key, bytes const &_value)
 
void insert (bytesConstRef _key, bytes const &_value)
 
void insert (bytes const &_key, bytesConstRef _value)
 
void insert (bytesConstRef _key, bytesConstRef _value)
 
void remove (bytes const &_key)
 
void remove (bytesConstRef _key)
 
bool contains (bytes const &_key)
 
bool contains (bytesConstRef _key)
 
iterator begin () const
 
iterator end () const
 
iterator lower_bound (bytesConstRef _key) const
 
void descendKey (h256 const &_k, h256Hash &_keyMask, bool _wasExt, std::ostream *_out, int _indent=0) const
 Used for debugging, scans the whole trie. More...
 
void descendEntry (RLP const &_r, h256Hash &_keyMask, bool _wasExt, std::ostream *_out, int _indent) const
 Used for debugging, scans the whole trie. More...
 
void descendList (RLP const &_r, h256Hash &_keyMask, bool _wasExt, std::ostream *_out, int _indent) const
 Used for debugging, scans the whole trie. More...
 
h256Hash leftOvers (std::ostream *_out=nullptr) const
 Used for debugging, scans the whole trie. More...
 
void debugStructure (std::ostream &_out) const
 Used for debugging, scans the whole trie. More...
 
bool check (bool _requireNoLeftOvers) const
 Used for debugging, scans the whole trie. More...
 
DB const * db () const
 Get the underlying database. More...
 
DBdb ()
 

Detailed Description

template<class _DB>
class dev::FatGenericTrieDB< _DB >

Definition at line 424 of file TrieDB.h.

Member Typedef Documentation

template<class _DB>
using dev::FatGenericTrieDB< _DB >::DB = _DB

Definition at line 429 of file TrieDB.h.

template<class _DB>
using dev::FatGenericTrieDB< _DB >::Super = SpecificTrieDB<GenericTrieDB<_DB>, h256>
private

Definition at line 426 of file TrieDB.h.

Constructor & Destructor Documentation

template<class _DB>
dev::FatGenericTrieDB< _DB >::FatGenericTrieDB ( DB _db = nullptr)
inline

Definition at line 430 of file TrieDB.h.

template<class _DB>
dev::FatGenericTrieDB< _DB >::FatGenericTrieDB ( DB _db,
h256  _root,
Verification  _v = Verification::Normal 
)
inline

Definition at line 431 of file TrieDB.h.

Member Function Documentation

template<class _DB>
std::string dev::FatGenericTrieDB< _DB >::at ( bytesConstRef  _key) const
inline

Definition at line 444 of file TrieDB.h.

Here is the call graph for this function:

template<class _DB>
iterator dev::FatGenericTrieDB< _DB >::begin ( ) const
inline

Definition at line 475 of file TrieDB.h.

Here is the caller graph for this function:

template<class _DB>
bool dev::FatGenericTrieDB< _DB >::contains ( bytesConstRef  _key)
inline

Definition at line 445 of file TrieDB.h.

Here is the call graph for this function:

template<class _DB>
iterator dev::FatGenericTrieDB< _DB >::end ( ) const
inline

Definition at line 476 of file TrieDB.h.

Here is the caller graph for this function:

template<class _DB>
HashedIterator dev::FatGenericTrieDB< _DB >::hashedBegin ( ) const
inline

Definition at line 494 of file TrieDB.h.

template<class _DB>
HashedIterator dev::FatGenericTrieDB< _DB >::hashedEnd ( ) const
inline

Definition at line 495 of file TrieDB.h.

template<class _DB>
void dev::FatGenericTrieDB< _DB >::insert ( bytesConstRef  _key,
bytesConstRef  _value 
)
inline

Definition at line 446 of file TrieDB.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class _DB>
void dev::FatGenericTrieDB< _DB >::remove ( bytesConstRef  _key)
inline

Definition at line 453 of file TrieDB.h.

Here is the call graph for this function:

Here is the caller graph for this function:


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