Kagome
Polkadot Runtime Engine in C++17
kagome::storage::face::GenericMap< K, V, KView > Struct Template Reference

An abstraction over a readable, writeable, iterable key-value map. More...

#include <generic_maps.hpp>

Inheritance diagram for kagome::storage::face::GenericMap< K, V, KView >:
Collaboration diagram for kagome::storage::face::GenericMap< K, V, KView >:

Additional Inherited Members

- Public Types inherited from kagome::storage::face::Iterable< K, ReadableMap< K, V >::ConstValueView, KView >
using Cursor = MapCursor< K, ReadableMap< K, V >::ConstValueView, KView >
 
- Public Types inherited from kagome::storage::face::ReadableMap< KView, V >
using Key = KView
 
using Value = V
 
using ValueView = std::reference_wrapper< V >
 
using ConstValueView = std::reference_wrapper< const V >
 
- Public Types inherited from kagome::storage::face::ReadableBase< KView >
using Key = KView
 
- Public Member Functions inherited from kagome::storage::face::Iterable< K, ReadableMap< K, V >::ConstValueView, KView >
virtual ~Iterable ()=default
 
virtual std::unique_ptr< Cursorcursor ()=0
 Returns new key-value iterator. More...
 
- Public Member Functions inherited from kagome::storage::face::ReadableMap< KView, V >
virtual ~ReadableMap ()=default
 
virtual outcome::result< ConstValueViewget (const Key &key) const =0
 Get value by key. More...
 
virtual outcome::result< std::optional< ConstValueView > > tryGet (const Key &key) const =0
 Get 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...
 

Detailed Description

template<typename K, typename V, typename KView = K>
struct kagome::storage::face::GenericMap< K, V, KView >

An abstraction over a readable, writeable, iterable key-value map.

Template Parameters
Kkey type
Vvalue type

Definition at line 36 of file generic_maps.hpp.


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