| 
    Kagome
    
   Polkadot Runtime Engine in C++17 
   | 
 
A mixin for read-only map. More...
#include <readable.hpp>
Public Types | |
| using | Key = K | 
| using | Value = V | 
| using | ValueView = std::reference_wrapper< V > | 
| using | ConstValueView = std::reference_wrapper< const V > | 
  Public Types inherited from kagome::storage::face::ReadableBase< K > | |
| using | Key = K | 
Public Member Functions | |
| virtual | ~ReadableMap ()=default | 
| virtual outcome::result< ConstValueView > | get (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< K > | |
| 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... | |
A mixin for read-only map.
| K | key type | 
| V | value type | 
Definition at line 40 of file readable.hpp.
| using kagome::storage::face::ReadableMap< K, V >::ConstValueView = std::reference_wrapper<const V> | 
Definition at line 44 of file readable.hpp.
| using kagome::storage::face::ReadableMap< K, V >::Key = K | 
Definition at line 41 of file readable.hpp.
| using kagome::storage::face::ReadableMap< K, V >::Value = V | 
Definition at line 42 of file readable.hpp.
| using kagome::storage::face::ReadableMap< K, V >::ValueView = std::reference_wrapper<V> | 
Definition at line 43 of file readable.hpp.
      
  | 
  virtualdefault | 
      
  | 
  pure virtual | 
Get value by key.
| key | K | 
Implemented in kagome::storage::trie::PolkadotTrieImpl, kagome::storage::trie::PersistentTrieBatchImpl, kagome::storage::trie::TopperTrieBatchImpl, and kagome::storage::trie::EphemeralTrieBatchImpl.
      
  | 
  pure virtual | 
Get value by key.
| key | K | 
Implemented in kagome::storage::trie::PolkadotTrieImpl, kagome::storage::trie::PersistentTrieBatchImpl, kagome::storage::trie::TopperTrieBatchImpl, and kagome::storage::trie::EphemeralTrieBatchImpl.