Kagome
Polkadot Runtime Engine in C++17
|
An mixin for modifiable map. More...
#include <writeable.hpp>
Public Member Functions | |
virtual | ~Writeable ()=default |
virtual outcome::result< void > | put (const K &key, const V &value)=0 |
Store value by key. More... | |
virtual outcome::result< void > | put (const K &key, V &&value)=0 |
virtual outcome::result< void > | remove (const K &key)=0 |
Remove value by key. More... | |
An mixin for modifiable map.
K | key type |
V | value type |
Definition at line 19 of file writeable.hpp.
|
virtualdefault |
|
pure virtual |
Store value by key.
key | key |
value | value |
Implemented in kagome::storage::trie::PolkadotTrieImpl, kagome::storage::trie::PersistentTrieBatchImpl, kagome::storage::trie::TopperTrieBatchImpl, kagome::storage::trie::EphemeralTrieBatchImpl, kagome::storage::trie::TrieStorageBackendBatch, and kagome::storage::InMemoryBatch.
|
pure virtual |
|
pure virtual |
Remove value by key.
key | K |
Implemented in kagome::storage::trie::PolkadotTrieImpl, kagome::storage::trie::PersistentTrieBatchImpl, kagome::storage::trie::TopperTrieBatchImpl, kagome::storage::trie::TrieStorageBackendBatch, kagome::storage::trie::EphemeralTrieBatchImpl, and kagome::storage::InMemoryBatch.