Kagome
Polkadot Runtime Engine in C++17
kagome::storage::face::ReadableBase< K > Struct Template Referenceabstract

#include <readable.hpp>

Inheritance diagram for kagome::storage::face::ReadableBase< K >:
Collaboration diagram for kagome::storage::face::ReadableBase< K >:

Public Types

using Key = K
 

Public Member Functions

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...
 

Detailed Description

template<typename K>
struct kagome::storage::face::ReadableBase< K >

Definition at line 16 of file readable.hpp.

Member Typedef Documentation

template<typename K>
using kagome::storage::face::ReadableBase< K >::Key = K

Definition at line 17 of file readable.hpp.

Constructor & Destructor Documentation

template<typename K>
virtual kagome::storage::face::ReadableBase< K >::~ReadableBase ( )
virtualdefault

Member Function Documentation

template<typename K>
virtual outcome::result<bool> kagome::storage::face::ReadableBase< K >::contains ( const Key key) const
pure virtual

Checks if given key-value binding exists in the storage.

Parameters
keyK
Returns
true if key has value, false if does not, or error at .

Implemented in kagome::storage::trie::PolkadotTrieImpl, kagome::storage::RocksDB, kagome::storage::trie::PersistentTrieBatchImpl, kagome::storage::trie::TopperTrieBatchImpl, and kagome::storage::trie::EphemeralTrieBatchImpl.


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