CCF
|
#include <map_handle.h>
Inherited by ccf::kv::MapHandle< K, V, KSerialiser, VSerialiser >.
Public Member Functions | |
WriteableMapHandle (ccf::kv::untyped::MapHandle &uh) | |
void | put (const K &key, const V &value) |
void | remove (const K &key) |
void | clear () |
Protected Attributes | |
ccf::kv::untyped::MapHandle & | write_handle |
Grants write access to a ccf::kv::Map
, as part of a ccf::kv::Tx
.
|
inline |
|
inline |
Delete every key-value pair.
|
inline |
Write value at key.
If the key already exists, the previous value will be replaced with the new value.
key | Key at which to insert |
value | Associated value to be inserted |
|
inline |
Delete a key-value pair.
It is safe to call this on non-existent keys.
key | Key to be removed |
|
protected |