3#include <alpaqa/export.h>
5#include <nlohmann/json_fwd.hpp>
24 template <
class T_actual,
class A>
40 using std::invalid_argument::invalid_argument;
void get_param(const T &t, json &j)
Get the first argument as a JSON object j.
void set_param(T &t, const json &j)
Update/overwrite the first argument based on the JSON object j.
Function wrapper to set attributes of a struct, type-erasing the type of the attribute.
Function wrapper access the enumerators of an enum, type-erasing the type of the enum.
std::function< void(T &, const json &)> set
std::function< void(const T &, json &)> get
attribute_accessor(A T_actual::*attr, std::string_view="")
enum_accessor(T value, std::string_view="")
Custom parameter parsing exception.
std::vector< std::string > backtrace