|
Kagome
Polkadot Runtime Engine in C++17
|
#include <readable.hpp>
Public Types | |
| using | Key = K |
| using | Value = V |
Public Types inherited from kagome::storage::face::ReadableBase< K > | |
| using | Key = K |
Public Member Functions | |
| 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< 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... | |
Definition at line 65 of file readable.hpp.
| using kagome::storage::face::ReadableStorage< K, V >::Key = K |
Definition at line 66 of file readable.hpp.
| using kagome::storage::face::ReadableStorage< K, V >::Value = V |
Definition at line 67 of file readable.hpp.
|
virtualdefault |
|
pure virtual |
|
pure virtual |
Load value by key.
| key | K |
Implemented in kagome::storage::RocksDB.