#include <value_handle.h>
Inherited by ccf::kv::ValueHandle< V, VSerialiser, Unit >.
template<typename V, typename VSerialiser, typename Unit>
class ccf::kv::ReadableValueHandle< V, VSerialiser, Unit >
Grants read access to a ccf::kv::Value
, as part of a ccf::kv::Tx
.
◆ ValueType
template<typename V , typename VSerialiser , typename Unit >
◆ ReadableValueHandle()
template<typename V , typename VSerialiser , typename Unit >
◆ get()
template<typename V , typename VSerialiser , typename Unit >
Get the stored value.
This will return nullopt of the value has never been set, or has been removed.
- Returns
- Optional containing associated value, or empty if the value doesn't exist
◆ get_globally_committed()
template<typename V , typename VSerialiser , typename Unit >
Get globally committed value, which has been replicated and acknowledged by consensus protocol.
- Returns
- Optional containing associated value, or empty if the value doesn't exist in globally committed state
◆ get_version_of_previous_write()
template<typename V , typename VSerialiser , typename Unit >
◆ has()
template<typename V , typename VSerialiser , typename Unit >
Test if value is defined.
This is equivalent to get().has_value()
, but is more efficient as it doesn't need to deserialise the value.
- Returns
- Boolean true iff value is defined
◆ read_handle
template<typename V , typename VSerialiser , typename Unit >
The documentation for this class was generated from the following file: