Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Public Types | Public Member Functions | List of all members
dev::SpecificTrieDB< Generic, _KeyType > Class Template Reference

Different view on a GenericTrieDB that can use different key types. More...

#include <TrieDB.h>

Inheritance diagram for dev::SpecificTrieDB< Generic, _KeyType >:
[legend]
Collaboration diagram for dev::SpecificTrieDB< Generic, _KeyType >:
[legend]

Classes

class  iterator
 

Public Types

using DB = typename Generic::DB
 
using KeyType = _KeyType
 

Public Member Functions

 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
 

Detailed Description

template<class Generic, class _KeyType>
class dev::SpecificTrieDB< Generic, _KeyType >

Different view on a GenericTrieDB that can use different key types.

Definition at line 320 of file TrieDB.h.

Member Typedef Documentation

template<class Generic, class _KeyType>
using dev::SpecificTrieDB< Generic, _KeyType >::DB = typename Generic::DB

Definition at line 323 of file TrieDB.h.

template<class Generic, class _KeyType>
using dev::SpecificTrieDB< Generic, _KeyType >::KeyType = _KeyType

Definition at line 324 of file TrieDB.h.

Constructor & Destructor Documentation

template<class Generic, class _KeyType>
dev::SpecificTrieDB< Generic, _KeyType >::SpecificTrieDB ( DB _db = nullptr)
inline

Definition at line 326 of file TrieDB.h.

template<class Generic, class _KeyType>
dev::SpecificTrieDB< Generic, _KeyType >::SpecificTrieDB ( DB _db,
h256  _root,
Verification  _v = Verification::Normal 
)
inline

Definition at line 327 of file TrieDB.h.

Member Function Documentation

template<class Generic, class _KeyType>
std::string dev::SpecificTrieDB< Generic, _KeyType >::at ( KeyType  _k) const
inline

Definition at line 332 of file TrieDB.h.

Here is the caller graph for this function:

template<class Generic, class _KeyType>
iterator dev::SpecificTrieDB< Generic, _KeyType >::begin ( ) const
inline

Definition at line 353 of file TrieDB.h.

template<class Generic, class _KeyType>
bool dev::SpecificTrieDB< Generic, _KeyType >::contains ( KeyType  _k) const
inline

Definition at line 331 of file TrieDB.h.

template<class Generic, class _KeyType>
iterator dev::SpecificTrieDB< Generic, _KeyType >::end ( ) const
inline

Definition at line 354 of file TrieDB.h.

template<class Generic, class _KeyType>
void dev::SpecificTrieDB< Generic, _KeyType >::insert ( KeyType  _k,
bytesConstRef  _value 
)
inline

Definition at line 333 of file TrieDB.h.

Here is the caller graph for this function:

template<class Generic, class _KeyType>
void dev::SpecificTrieDB< Generic, _KeyType >::insert ( KeyType  _k,
bytes const &  _value 
)
inline

Definition at line 334 of file TrieDB.h.

Here is the caller graph for this function:

template<class Generic, class _KeyType>
iterator dev::SpecificTrieDB< Generic, _KeyType >::lower_bound ( KeyType  _k) const
inline

Definition at line 355 of file TrieDB.h.

template<class Generic, class _KeyType>
std::string dev::SpecificTrieDB< Generic, _KeyType >::operator[] ( KeyType  _k) const
inline

Definition at line 329 of file TrieDB.h.

template<class Generic, class _KeyType>
void dev::SpecificTrieDB< Generic, _KeyType >::remove ( KeyType  _k)
inline

Definition at line 335 of file TrieDB.h.

Here is the caller graph for this function:


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