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

#include <value_handle.h>

Inherited by ccf::kv::ValueHandle< V, VSerialiser, Unit >.

Public Member Functions

 WriteableValueHandle (ccf::kv::untyped::MapHandle &uh)
 
void put (const V &value)
 
void clear ()
 

Protected Attributes

ccf::kv::untyped::MapHandlewrite_handle
 

Detailed Description

template<typename V, typename VSerialiser, typename Unit>
class ccf::kv::WriteableValueHandle< V, VSerialiser, Unit >

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

Constructor & Destructor Documentation

◆ WriteableValueHandle()

template<typename V , typename VSerialiser , typename Unit >
ccf::kv::WriteableValueHandle< V, VSerialiser, Unit >::WriteableValueHandle ( ccf::kv::untyped::MapHandle uh)
inline

Member Function Documentation

◆ clear()

template<typename V , typename VSerialiser , typename Unit >
void ccf::kv::WriteableValueHandle< V, VSerialiser, Unit >::clear ( )
inline

Delete this value, restoring its original undefined state.

◆ put()

template<typename V , typename VSerialiser , typename Unit >
void ccf::kv::WriteableValueHandle< V, VSerialiser, Unit >::put ( const V &  value)
inline

Modify 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.

Parameters
valueNew entry to assign to this Value

Member Data Documentation

◆ write_handle

template<typename V , typename VSerialiser , typename Unit >
ccf::kv::untyped::MapHandle& ccf::kv::WriteableValueHandle< V, VSerialiser, Unit >::write_handle
protected

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