C++ Actor Framework  0.18
Public Attributes | List of all members
caf::config_option::meta_state Struct Reference

Custom vtable-like struct for delegating to type-specific functions and storing type-specific information shared by several config options. More...

#include <config_option.hpp>

Collaboration diagram for caf::config_option::meta_state:
Collaboration graph

Public Attributes

error(* sync )(void *, config_value &)
 Tries to perform this sequence of steps: More...
 
config_value(* get )(const void *)
 Tries to extract a value from the given location. More...
 
string_view type_name
 Human-readable name of the option's type.
 

Detailed Description

Custom vtable-like struct for delegating to type-specific functions and storing type-specific information shared by several config options.

Member Data Documentation

◆ get

config_value(* caf::config_option::meta_state::get) (const void *)

Tries to extract a value from the given location.

Exists for backward compatibility only and will get removed with CAF 0.17.

◆ sync

error(* caf::config_option::meta_state::sync) (void *, config_value &)

Tries to perform this sequence of steps:

  • Convert the config value to the type of the config option.
  • Assign the converted value back to the config value to synchronize conversions back to the caller.
  • Store the converted value in the pointer unless it is nullptr.

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