sgns::storage::face::ReadOnlyMap¶
An abstraction over a readable and iterable key-value map. More...
#include <generic_maps.hpp>
Inherits from sgns::storage::face::Iterable< K, V >, sgns::storage::face::Readable< K, V >
Inherited by sgns::storage::face::GenericMap< K, V >, sgns::storage::face::GenericStorage< K, V >
Additional inherited members¶
Public Functions inherited from sgns::storage::face::Iterable< K, V >
| Name | |
|---|---|
| virtual | ~Iterable() =default |
| virtual std::unique_ptr< MapCursor< K, V > > | cursor() =0 Returns new key-value iterator. |
Public Functions inherited from sgns::storage::face::Readable< K, V >
| 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¶
An abstraction over a readable and iterable key-value map.
Template Parameters:
- K key type
- V value type
Updated on 2026-04-15 at 11:00:39 -0700