sgns::storage::face::Writeable¶
An mixin for modifiable map. More...
#include <writeable.hpp>
Inherited by sgns::storage::face::BatchWriteMap< K, V >, sgns::storage::face::GenericMap< K, V >, sgns::storage::face::WriteBatch< K, V >
Public Functions¶
| Name | |
|---|---|
| virtual | ~Writeable() =default |
| virtual outcome::result< void > | put(const K & key, const V & value) =0 Store value by key. |
| virtual outcome::result< void > | put(const K & key, V && value) =0 |
| virtual outcome::result< void > | remove(const K & key) =0 Remove value by key. |
Detailed Description¶
An mixin for modifiable map.
Template Parameters:
- K key type
- V value type
Public Functions Documentation¶
function ~Writeable¶
function put¶
Store value by key.
Parameters:
- key key
- value value
Return: result containing void if put successful, error otherwise
Reimplemented by: sgns::storage::InMemoryBatch::put, sgns::storage::InMemoryStorage::put, sgns::storage::rocksdb::Batch::put, sgns::storage::rocksdb::put, sgns::storage::trie::EphemeralTrieBatchImpl::put, sgns::storage::trie::PersistentTrieBatchImpl::put, sgns::storage::trie::SuperGeniusTrieImpl::put, sgns::storage::trie::TopperTrieBatchImpl::put, sgns::storage::trie::TrieStorageBackendBatch::put, sgns::storage::trie::TrieStorageBackendImpl::put
function put¶
function remove¶
Remove value by key.
Parameters:
- key K
Return: error code if error happened
Reimplemented by: sgns::storage::InMemoryBatch::remove, sgns::storage::InMemoryStorage::remove, sgns::storage::rocksdb::Batch::remove, sgns::storage::rocksdb::remove, sgns::storage::trie::EphemeralTrieBatchImpl::remove, sgns::storage::trie::PersistentTrieBatchImpl::remove, sgns::storage::trie::SuperGeniusTrieImpl::remove, sgns::storage::trie::TopperTrieBatchImpl::remove, sgns::storage::trie::TrieStorageBackendBatch::remove, sgns::storage::trie::TrieStorageBackendImpl::remove
Updated on 2026-03-04 at 13:10:44 -0800