|
CCF
|
#include <set.h>
Inherits ccf::kv::GetName.
Public Types | |
| using | ReadOnlyHandle = ccf::kv::ReadableSetHandle< K, KSerialiser > |
| using | WriteOnlyHandle = ccf::kv::WriteableSetHandle< K, KSerialiser, Unit > |
| using | Handle = ccf::kv::SetHandle< K, KSerialiser, Unit > |
| using | Write = std::map< K, std::optional< ccf::kv::serialisers::SerialisedEntry > > |
| using | MapHook = MapHook< Write > |
| using | CommitHook = CommitHook< Write > |
| using | Key = K |
| using | KeySerialiser = KSerialiser |
Public Member Functions | |
| GetName (std::string s) | |
Public Member Functions inherited from ccf::kv::GetName | |
| GetName (std::string s) | |
| virtual | ~GetName ()=default |
| const std::string & | get_name () const |
Static Public Member Functions | |
| static ccf::kv::untyped::CommitHook | wrap_commit_hook (const CommitHook &hook) |
| static ccf::kv::untyped::MapHook | wrap_map_hook (const MapHook &hook) |
Additional Inherited Members | |
Protected Attributes inherited from ccf::kv::GetName | |
| std::string | name |
Defines the schema of a set type accessed by a ccf::Tx. This set is an unordered container of unique keys. Each key is either present or missing within the set, and key presence can be efficiently tested.
K defines the type of each entry in this set. KSerialiser determines how each K is serialised and deserialised, so they may be written to the ledger and replicated by the consensus algorithm. Note that equality is always evaluated on the serialised form; if unequal Ks produce the same serialisation, they will coincide within this set.
This is implemented as a ccf::kv::Map from K to Unit, and the serialisation of the unit values is overridable with the Unit template parameter.
| using ccf::kv::TypedSet< K, KSerialiser, Unit >::CommitHook = CommitHook<Write> |
| using ccf::kv::TypedSet< K, KSerialiser, Unit >::Handle = ccf::kv::SetHandle<K, KSerialiser, Unit> |
| using ccf::kv::TypedSet< K, KSerialiser, Unit >::Key = K |
| using ccf::kv::TypedSet< K, KSerialiser, Unit >::KeySerialiser = KSerialiser |
| using ccf::kv::TypedSet< K, KSerialiser, Unit >::MapHook = MapHook<Write> |
| using ccf::kv::TypedSet< K, KSerialiser, Unit >::ReadOnlyHandle = ccf::kv::ReadableSetHandle<K, KSerialiser> |
| using ccf::kv::TypedSet< K, KSerialiser, Unit >::Write = std::map<K, std::optional<ccf::kv::serialisers::SerialisedEntry> > |
| using ccf::kv::TypedSet< K, KSerialiser, Unit >::WriteOnlyHandle = ccf::kv::WriteableSetHandle<K, KSerialiser, Unit> |
|
inline |
|
inlinestatic |
|
inlinestatic |