alpaqa 1.0.0a14
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
json.tpp File Reference
#include <alpaqa/config/config.hpp>
#include <alpaqa/params/json.hpp>
#include <alpaqa/util/demangled-typename.hpp>
#include <alpaqa/util/string-util.hpp>
#include <nlohmann/json.hpp>
#include <stdexcept>

Go to the source code of this file.

Namespaces

namespace  alpaqa
 
namespace  alpaqa::params
 
namespace  alpaqa::params::detail
 

Typedefs

using config_t = DefaultConfig
 

Functions

std::string join_sorted_keys (const auto &members)
 
template<class T >
requires requires { attribute_table<T, json>::table; }
void set_param (T &t, const json &j)
 Update/overwrite the first argument based on the JSON object j.
 
template<class T >
requires requires { attribute_table<T, json>::table; }
void get_param (const T &t, json &s)
 Get the first argument as a JSON object j.