CCF
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ccf::kv::ReadableUnitValueHandle< Unit > Class Template Reference

#include <unit_value_handle.h>

Inherited by ccf::kv::UnitValueHandle< Unit >.

Public Member Functions

 ReadableUnitValueHandle (ccf::kv::untyped::MapHandle &uh)
 
bool has ()
 
std::optional< Versionget_version_of_previous_write ()
 

Protected Attributes

ccf::kv::untyped::MapHandleread_handle
 

Detailed Description

template<typename Unit>
class ccf::kv::ReadableUnitValueHandle< Unit >

Grants read access to a ccf::kv::UnitValue, as part of a ccf::kv::Tx.

Constructor & Destructor Documentation

◆ ReadableUnitValueHandle()

template<typename Unit >
ccf::kv::ReadableUnitValueHandle< Unit >::ReadableUnitValueHandle ( ccf::kv::untyped::MapHandle uh)
inline

Member Function Documentation

◆ get_version_of_previous_write()

template<typename Unit >
std::optional< Version > ccf::kv::ReadableUnitValueHandle< Unit >::get_version_of_previous_write ( )
inline

Get version when this value was last written to, by a previous transaction.

See also
ccf::kv::ReadableMapHandle::get_version_of_previous_write
Returns
Optional containing version of applied transaction which last wrote to this value, or nullopt if such a version does not exist

◆ has()

template<typename Unit >
bool ccf::kv::ReadableUnitValueHandle< Unit >::has ( )
inline

Test if the value has been touched.

Returns
Boolean true iff the value is defined

Member Data Documentation

◆ read_handle

template<typename Unit >
ccf::kv::untyped::MapHandle& ccf::kv::ReadableUnitValueHandle< Unit >::read_handle
protected

The documentation for this class was generated from the following file: