C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::inspector_access_base< T > Struct Template Reference

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

#include <inspector_access_base.hpp>

Static Public Member Functions

template<class Inspector , class IsValid , class SyncValue >
static bool load_field (Inspector &f, std::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, std::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.
 
template<class Inspector >
static bool save_field (Inspector &f, std::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, std::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 and load_field.


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