CCF
|
#include <value.h>
Inherits ccf::kv::GetName.
Public Types | |
using | ReadOnlyHandle = ccf::kv::ReadableValueHandle< V, VSerialiser, Unit > |
using | WriteOnlyHandle = ccf::kv::WriteableValueHandle< V, VSerialiser, Unit > |
using | Handle = ccf::kv::ValueHandle< V, VSerialiser, Unit > |
using | Write = std::optional< V > |
using | MapHook = MapHook< Write > |
using | CommitHook = CommitHook< Write > |
using | Value = V |
using | ValueSerialiser = VSerialiser |
Public Member Functions | |
GetName (const std::string &s) | |
![]() | |
GetName (const std::string &s) | |
virtual | ~GetName ()=default |
const std::string & | get_name () const |
Static Public Member Functions | |
static ccf::kv::serialisers::SerialisedEntry | create_unit () |
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 | |
![]() | |
std::string | name |
Defines the schema of a single-valued type accessed by a ccf::Tx
. This value type is a container for an optional single element of type V. This may be undefined if the value has not been written to the KV, or else it has the value from the current or last-applied transaction.
V defines the type of the contained Value. VSerialiser determines how this V is serialised and deserialised, so it may be written to the ledger and replicated by the consensus algorithm.
This is implemented as a ccf::kv::Map
from Unit to V, and the serialisation of the unit key is overridable with the Unit template parameter.
using ccf::kv::TypedValue< V, VSerialiser, Unit >::CommitHook = CommitHook<Write> |
using ccf::kv::TypedValue< V, VSerialiser, Unit >::Handle = ccf::kv::ValueHandle<V, VSerialiser, Unit> |
using ccf::kv::TypedValue< V, VSerialiser, Unit >::MapHook = MapHook<Write> |
using ccf::kv::TypedValue< V, VSerialiser, Unit >::ReadOnlyHandle = ccf::kv::ReadableValueHandle<V, VSerialiser, Unit> |
using ccf::kv::TypedValue< V, VSerialiser, Unit >::Value = V |
using ccf::kv::TypedValue< V, VSerialiser, Unit >::ValueSerialiser = VSerialiser |
using ccf::kv::TypedValue< V, VSerialiser, Unit >::Write = std::optional<V> |
using ccf::kv::TypedValue< V, VSerialiser, Unit >::WriteOnlyHandle = ccf::kv::WriteableValueHandle<V, VSerialiser, Unit> |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inlinestatic |