|
CCF
|
#include <map_handle.h>
Inherits ccf::kv::AbstractHandle, ccf::kv::ReadableMapHandle< K, V, KSerialiser, VSerialiser >, and ccf::kv::WriteableMapHandle< K, V, KSerialiser, VSerialiser >.
Public Member Functions | |
| MapHandle (ccf::kv::untyped::ChangeSet &changes, const std::string &map_name) | |
Public Member Functions inherited from ccf::kv::AbstractHandle | |
| virtual | ~AbstractHandle ()=default |
Public Member Functions inherited from ccf::kv::ReadableMapHandle< K, V, KSerialiser, VSerialiser > | |
| ReadableMapHandle (ccf::kv::untyped::MapHandle &uh) | |
| std::string | get_name_of_map () const |
| std::optional< V > | get (const K &key) |
| std::optional< V > | get_globally_committed (const K &key) |
| bool | has (const K &key) |
| std::optional< Version > | get_version_of_previous_write (const K &key) |
| template<class F > | |
| void | foreach (F &&f) |
| template<class F > | |
| void | foreach_key (F &&f) |
| template<class F > | |
| void | foreach_value (F &&f) |
| size_t | size () |
Public Member Functions inherited from ccf::kv::WriteableMapHandle< K, V, KSerialiser, VSerialiser > | |
| WriteableMapHandle (ccf::kv::untyped::MapHandle &uh) | |
| void | put (const K &key, const V &value) |
| void | remove (const K &key) |
| void | clear () |
Protected Types | |
| using | ReadableBase = ReadableMapHandle< K, V, KSerialiser, VSerialiser > |
| using | WriteableBase = WriteableMapHandle< K, V, KSerialiser, VSerialiser > |
Protected Attributes | |
| ccf::kv::untyped::MapHandle | untyped_handle |
Protected Attributes inherited from ccf::kv::ReadableMapHandle< K, V, KSerialiser, VSerialiser > | |
| ccf::kv::untyped::MapHandle & | read_handle |
Protected Attributes inherited from ccf::kv::WriteableMapHandle< K, V, KSerialiser, VSerialiser > | |
| ccf::kv::untyped::MapHandle & | write_handle |
Additional Inherited Members | |
Public Types inherited from ccf::kv::ReadableMapHandle< K, V, KSerialiser, VSerialiser > | |
| using | KeyType = K |
| using | ValueType = V |
Grants read and write access to a ccf::kv::Map, as part of a ccf::kv::Tx.
|
protected |
|
protected |
|
inline |
|
protected |