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

#include <unit_value_handle.h>

Inherits ccf::kv::AbstractHandle, ccf::kv::ReadableUnitValueHandle< Unit >, and ccf::kv::WriteableUnitValueHandle< Unit >.

Public Member Functions

 UnitValueHandle (ccf::kv::untyped::ChangeSet &changes, const std::string &map_name)
 
- Public Member Functions inherited from ccf::kv::AbstractHandle
virtual ~AbstractHandle ()=default
 
- Public Member Functions inherited from ccf::kv::ReadableUnitValueHandle< Unit >
 ReadableUnitValueHandle (ccf::kv::untyped::MapHandle &uh)
 
bool has ()
 
std::optional< Versionget_version_of_previous_write ()
 
- Public Member Functions inherited from ccf::kv::WriteableUnitValueHandle< Unit >
 WriteableUnitValueHandle (ccf::kv::untyped::MapHandle &uh)
 
void touch ()
 
void clear ()
 

Protected Types

using ReadableBase = ReadableUnitValueHandle< Unit >
 
using WriteableBase = WriteableUnitValueHandle< Unit >
 

Protected Attributes

ccf::kv::untyped::MapHandle untyped_handle
 
- Protected Attributes inherited from ccf::kv::ReadableUnitValueHandle< Unit >
ccf::kv::untyped::MapHandleread_handle
 
- Protected Attributes inherited from ccf::kv::WriteableUnitValueHandle< Unit >
ccf::kv::untyped::MapHandlewrite_handle
 

Detailed Description

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

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

See also
ccf::kv::ReadableUnitValueHandle
ccf::kv::WriteableUnitValueHandle

Member Typedef Documentation

◆ ReadableBase

template<typename Unit >
using ccf::kv::UnitValueHandle< Unit >::ReadableBase = ReadableUnitValueHandle<Unit>
protected

◆ WriteableBase

template<typename Unit >
using ccf::kv::UnitValueHandle< Unit >::WriteableBase = WriteableUnitValueHandle<Unit>
protected

Constructor & Destructor Documentation

◆ UnitValueHandle()

template<typename Unit >
ccf::kv::UnitValueHandle< Unit >::UnitValueHandle ( ccf::kv::untyped::ChangeSet changes,
const std::string &  map_name 
)
inline

Member Data Documentation

◆ untyped_handle

template<typename Unit >
ccf::kv::untyped::MapHandle ccf::kv::UnitValueHandle< Unit >::untyped_handle
protected

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