sgns::storage::face::Readable¶
A mixin for read-only map. More...
#include <readable.hpp>
Inherited by sgns::storage::face::ReadOnlyMap< Buffer, Buffer >, sgns::storage::face::ReadOnlyMap< K, V >
Public Functions¶
| Name | |
|---|---|
| virtual | ~Readable() =default |
| virtual outcome::result< V > | get(const K & key) const =0 Get value by key. |
| virtual bool | contains(const K & key) const =0 Returns true if given key-value binding exists in the storage. |
| virtual bool | empty() const =0 Returns true if the storage is empty. |
Detailed Description¶
A mixin for read-only map.
Template Parameters:
- K key type
- V value type
Public Functions Documentation¶
function ~Readable¶
function get¶
Get value by key.
Parameters:
- key K
Return: V
function contains¶
Returns true if given key-value binding exists in the storage.
Parameters:
- key K
Return: true if key has value, false otherwise.
function empty¶
Returns true if the storage is empty.
Reimplemented by: sgns::storage::rocksdb::empty
Updated on 2026-06-05 at 17:22:18 -0700