Kagome
Polkadot Runtime Engine in C++17
kagome::storage::trie::TrieStorageBackend Class Reference

#include <trie_storage_backend.hpp>

Inheritance diagram for kagome::storage::trie::TrieStorageBackend:
Collaboration diagram for kagome::storage::trie::TrieStorageBackend:

Public Member Functions

 ~TrieStorageBackend () override=default
 
- Public Member Functions inherited from kagome::storage::face::GenericStorage< K, V, KView >
virtual size_t size () const =0
 
- Public Member Functions inherited from kagome::storage::face::Iterable< K, V, KView >
virtual ~Iterable ()=default
 
virtual std::unique_ptr< Cursorcursor ()=0
 Returns new key-value iterator. More...
 
- Public Member Functions inherited from kagome::storage::face::ReadableStorage< KView, V >
virtual ~ReadableStorage ()=default
 
virtual outcome::result< V > load (const Key &key) const =0
 Load value by key. More...
 
virtual outcome::result< std::optional< V > > tryLoad (const Key &key) const =0
 Load value by key. More...
 
- Public Member Functions inherited from kagome::storage::face::ReadableBase< KView >
virtual ~ReadableBase ()=default
 
virtual outcome::result< bool > contains (const Key &key) const =0
 Checks if given key-value binding exists in the storage. More...
 
virtual bool empty () const =0
 Returns true if the storage is empty. More...
 
- Public Member Functions inherited from kagome::storage::face::Writeable< KView, V >
virtual ~Writeable ()=default
 
virtual outcome::result< void > put (const KView &key, const V &value)=0
 Store value by key. More...
 
virtual outcome::result< void > put (const KView &key, V &&value)=0
 
virtual outcome::result< void > remove (const KView &key)=0
 Remove value by key. More...
 
- Public Member Functions inherited from kagome::storage::face::BatchWriteable< KView, V >
virtual ~BatchWriteable ()=default
 
virtual std::unique_ptr< WriteBatch< KView, V > > batch ()=0
 Creates new Write Batch - an object, which can be used to efficiently write bulk data. More...
 

Additional Inherited Members

- Public Types inherited from kagome::storage::face::Iterable< K, V, KView >
using Cursor = MapCursor< K, V, KView >
 
- Public Types inherited from kagome::storage::face::ReadableStorage< KView, V >
using Key = KView
 
using Value = V
 
- Public Types inherited from kagome::storage::face::ReadableBase< KView >
using Key = KView
 

Detailed Description

Adapter for key-value storages that allows to hide keyspace separation along with root hash storing logic from the trie db component

Definition at line 21 of file trie_storage_backend.hpp.

Constructor & Destructor Documentation

kagome::storage::trie::TrieStorageBackend::~TrieStorageBackend ( )
overridedefault

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