3#include <alpaqa/export.h>
5#include <nlohmann/json_fwd.hpp>
15void ALPAQA_EXPORT
set_param(T &,
const json &j);
19void ALPAQA_EXPORT
get_param(
const T &, json &j);
29 using std::invalid_argument::invalid_argument;
void get_param(const T &, json &j)
Get the first argument as a JSON object j.
void set_param(T &, const json &j)
Update/overwrite the first argument based on the JSON object j.
enum_accessor(T value, std::string_view="")
Custom parameter parsing exception.
std::vector< std::string > backtrace