Provides default implementations for save_field
and load_field
.
More...
#include <inspector_access_base.hpp>
|
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 .
|
|
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:
- libcaf_core/caf/inspector_access_base.hpp