C++ Actor Framework  0.18
Static Public Member Functions | List of all members
caf::inspector_access_base< T > Struct Template Reference

Provides default implementations for save_field, load_field, and apply_value. More...

#include <inspector_access_base.hpp>

Inheritance diagram for caf::inspector_access_base< T >:
Inheritance graph
Collaboration diagram for caf::inspector_access_base< T >:
Collaboration graph

Static Public Member Functions

template<class Inspector , class IsValid , class SyncValue >
static bool load_field (Inspector &f, string_view field_name, T &x, IsValid &is_valid, SyncValue &sync_value)
 Loads a mandatory field from f.
 
template<class Inspector , class IsValid , class SyncValue , class SetFallback >
static bool load_field (Inspector &f, string_view field_name, T &x, IsValid &is_valid, SyncValue &sync_value, SetFallback &set_fallback)
 Loads an optional field from f, calling set_fallback if the source contains no value for x. More...
 
template<class Inspector >
static bool save_field (Inspector &f, string_view field_name, T &x)
 Saves a mandatory field to f.
 
template<class Inspector , class IsPresent , class Get >
static bool save_field (Inspector &f, string_view field_name, IsPresent &is_present, Get &get)
 Saves an optional field to f.
 

Detailed Description

template<class T>
struct caf::inspector_access_base< T >

Provides default implementations for save_field, load_field, and apply_value.

Member Function Documentation

◆ load_field()

template<class T>
template<class Inspector , class IsValid , class SyncValue , class SetFallback >
static bool caf::inspector_access_base< T >::load_field ( Inspector &  f,
string_view  field_name,
T &  x,
IsValid &  is_valid,
SyncValue &  sync_value,
SetFallback &  set_fallback 
)
static

Loads an optional field from f, calling set_fallback if the source contains no value for x.


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