|
CCF
|
#include <set_handle.h>
Inherited by ccf::kv::SetHandle< K, KSerialiser, Unit >.
Public Member Functions | |
| WriteableSetHandle (ccf::kv::untyped::MapHandle &uh) | |
| void | insert (const K &key) |
| void | remove (const K &key) |
| void | clear () |
Protected Attributes | |
| ccf::kv::untyped::MapHandle & | write_handle |
Grants write access to a ccf::kv::Set, as part of a ccf::kv::Tx.
|
inline |
|
inline |
Delete every element in this set.
|
inline |
Insert an element into this set.
This will always insert a value, producing a new write and updating future calls to ReadableSetHandle::get_version_of_previous_write, even if this key was already present.
| key | Key to insert |
|
inline |
Delete an element from this set.
It is safe to call this on non-existent keys.
| key | Key to delete |
|
protected |