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

#include <unit_value_handle.h>

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

Public Member Functions

 WriteableUnitValueHandle (ccf::kv::untyped::MapHandle &uh)
 
void touch ()
 
void clear ()
 

Protected Attributes

ccf::kv::untyped::MapHandlewrite_handle
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ WriteableUnitValueHandle()

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

Member Function Documentation

◆ clear()

template<typename Unit >
void ccf::kv::WriteableUnitValueHandle< Unit >::clear ( )
inline

Delete this value, restoring its original undefined state.

◆ touch()

template<typename Unit >
void ccf::kv::WriteableUnitValueHandle< Unit >::touch ( )
inline

Touch this value.

If this value was previously defined, it will be overwritten. Even if the previous value was identical, this produces a serialised write in the ledger.

Member Data Documentation

◆ write_handle

template<typename Unit >
ccf::kv::untyped::MapHandle& ccf::kv::WriteableUnitValueHandle< Unit >::write_handle
protected

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