Ethereum  PoC-8
The C++ Implementation of Ethereum
dev::SpecificTrieDB< Generic, _KeyType > Class Template Reference

#include <TrieDB.h>

Inheritance diagram for dev::SpecificTrieDB< Generic, _KeyType >:

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 317 of file TrieDB.h.

Member Typedef Documentation

◆ DB

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

Definition at line 320 of file TrieDB.h.

◆ KeyType

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

Definition at line 321 of file TrieDB.h.

Constructor & Destructor Documentation

◆ SpecificTrieDB() [1/2]

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

Definition at line 323 of file TrieDB.h.

◆ SpecificTrieDB() [2/2]

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

Definition at line 324 of file TrieDB.h.

Member Function Documentation

◆ at()

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

Definition at line 329 of file TrieDB.h.

◆ begin()

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

Definition at line 350 of file TrieDB.h.

◆ contains()

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

Definition at line 328 of file TrieDB.h.

◆ end()

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

Definition at line 351 of file TrieDB.h.

◆ insert() [1/2]

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

Definition at line 331 of file TrieDB.h.

◆ insert() [2/2]

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

Definition at line 330 of file TrieDB.h.

◆ lower_bound()

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

Definition at line 352 of file TrieDB.h.

◆ operator[]()

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

Definition at line 326 of file TrieDB.h.

◆ remove()

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

Definition at line 332 of file TrieDB.h.


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