|
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 { enum_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 { enum_table<T, json>::table; } |
void | get_param (const T &t, json &j) |
| Get the first argument as a 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 .
|
|
template<class T > |
void | assert_key_empty (ParamString s) |
| Throw a meaningful error when s.key is not empty, to indicate that the given type T is not of struct type and cannot be indexed into.
|
|
template<class T > |
void | unsupported_type (T &, ParamString s) |
| Throw a meaningful error to indicate that parameters of type T are not supported or implemented.
|
|
template<class T >
requires requires { attribute_table<T, ParamString>::table; } |
void | set_param (T &t, ParamString s) |
| Use s to index into the struct type T and overwrite the attribute given by s.key .
|
|
template<class T >
requires requires { enum_table<T, ParamString>::table; } |
void | set_param (T &t, ParamString s) |
| Set t to the value of s.value .
|
|
template<class T > |
void | set_param (T &, const json &j) |
| Update/overwrite the first argument based on the JSON object j .
|
|
template<class T > |
void | get_param (const T &, json &j) |
| Get the first argument as a JSON object j .
|
|
auto | split_key (std::string_view full, char tok='.') |
| Split the string full on the first occurrence of tok .
|
|
template<class T > |
void | set_param (T &, ParamString) |
| Update/overwrite the first argument based on the option in s .
|
|
template<class T > |
void | set_params (T &t, std::string_view prefix, std::span< const std::string_view > options, std::optional< std::span< unsigned > > used=std::nullopt) |
| Overwrites t based on the options that start with prefix .
|
|
template<class T > |
bool | is_leaf () |
|
template<class T > |
Result | get_members (const MemberGetter &s) |
| Catch-all.
|
|
template<class T >
requires requires { attribute_table<T, MemberGetter>::table; } |
Result | get_members (const MemberGetter &s) |
| Struct types.
|
|
template<class T >
requires requires { enum_table<T, MemberGetter>::table; } |
Result | get_members (const MemberGetter &s) |
| Enum types.
|
|
template<> |
Result | get_members< bool > (const MemberGetter &s) |
| True/false.
|
|
template<class Duration >
requires is_duration<Duration> |
void | set_param (Duration &t, const json &j) |
|
template<class Duration >
requires is_duration<Duration> |
void | get_param (const Duration &t, json &s) |
|
template<> |
void | set_param (alpaqa::vec< config_t > &v, const json &j) |
|
template<> |
void | set_param (vec_from_file< config_t > &v, const json &j) |
|
template<> |
void | set_param (bool &t, const nlohmann::json &j) |
|
template<> |
void | set_param (std::string &t, const nlohmann::json &j) |
|
template<std::integral T>
requires (!std::same_as<T, bool>) |
void | set_param (T &t, const nlohmann::json &j) |
|
template<std::floating_point T> |
void | set_param (T &t, const nlohmann::json &j) |
|
template<class T >
requires (std::integral<T> || std::same_as<T, bool> || std::same_as<T, std::string>) |
void | get_param (const T &t, nlohmann::json &j) |
|
template<std::floating_point T> |
void | get_param (const T &t, nlohmann::json &j) |
|
template<class... Ts> |
void | set_param (util::detail::dummy< Ts... > &, const json &) |
|
template<class... Ts> |
void | get_param (const util::detail::dummy< Ts... > &, json &) |
|
template void | get_param (const util::possible_alias_t< std::string > &, json &) |
|
template void | get_param (const util::possible_alias_t< bool > &, json &) |
|
template void | set_param (util::possible_alias_t< float > &, const json &) |
|
template void | get_param (const util::possible_alias_t< float > &, json &) |
|
template void | set_param (util::possible_alias_t< double, float > &, const json &) |
|
template void | get_param (const util::possible_alias_t< double, float > &, json &) |
|
template void | set_param (util::possible_alias_t< long double, double, float > &, const json &) |
|
template void | get_param (const util::possible_alias_t< long double, double, float > &, json &) |
|
template void | set_param (util::possible_alias_t< int8_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< int8_t > &, json &) |
|
template void | set_param (util::possible_alias_t< uint8_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< uint8_t > &, json &) |
|
template void | set_param (util::possible_alias_t< int16_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< int16_t > &, json &) |
|
template void | set_param (util::possible_alias_t< uint16_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< uint16_t > &, json &) |
|
template void | set_param (util::possible_alias_t< int32_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< int32_t > &, json &) |
|
template void | set_param (util::possible_alias_t< int64_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< int64_t > &, json &) |
|
template void | set_param (util::possible_alias_t< uint32_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< uint32_t > &, json &) |
|
template void | set_param (util::possible_alias_t< uint64_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< uint64_t > &, json &) |
|
template void | set_param (util::possible_alias_t< short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, json &) |
|
template void | set_param (util::possible_alias_t< int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, json &) |
|
template void | set_param (util::possible_alias_t< long, int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< long, int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, json &) |
|
template void | set_param (util::possible_alias_t< long long, long, int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< long long, long, int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, json &) |
|
template void | set_param (util::possible_alias_t< ptrdiff_t, long long, long, int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< ptrdiff_t, long long, long, int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, json &) |
|
template void | set_param (util::possible_alias_t< unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, json &) |
|
template void | set_param (util::possible_alias_t< unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, json &) |
|
template void | set_param (util::possible_alias_t< unsigned long, unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< unsigned long, unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, json &) |
|
template void | set_param (util::possible_alias_t< unsigned long long, unsigned long, unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< unsigned long long, unsigned long, unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, json &) |
|
template void | set_param (util::possible_alias_t< size_t, unsigned long long, unsigned long, unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, const json &) |
|
template void | get_param (const util::possible_alias_t< size_t, unsigned long long, unsigned long, unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, json &) |
|
template void | set_param (util::possible_alias_t< std::chrono::nanoseconds > &, const json &) |
|
template void | get_param (const util::possible_alias_t< std::chrono::nanoseconds > &, json &) |
|
template void | set_param (util::possible_alias_t< std::chrono::microseconds > &, const json &) |
|
template void | get_param (const util::possible_alias_t< std::chrono::microseconds > &, json &) |
|
template void | set_param (util::possible_alias_t< std::chrono::milliseconds > &, const json &) |
|
template void | get_param (const util::possible_alias_t< std::chrono::milliseconds > &, json &) |
|
template void | set_param (util::possible_alias_t< std::chrono::seconds > &, const json &) |
|
template void | get_param (const util::possible_alias_t< std::chrono::seconds > &, json &) |
|
template void | set_param (util::possible_alias_t< std::chrono::minutes > &, const json &) |
|
template void | get_param (const util::possible_alias_t< std::chrono::minutes > &, json &) |
|
template void | set_param (util::possible_alias_t< std::chrono::hours > &, const json &) |
|
template void | get_param (const util::possible_alias_t< std::chrono::hours > &, json &) |
|
template void | set_param (util::possible_alias_t< PANOCStopCrit > &, const json &) |
|
template void | get_param (const util::possible_alias_t< PANOCStopCrit > &, json &) |
|
template void | set_param (util::possible_alias_t< LBFGSStepSize > &, const json &) |
|
template void | get_param (const util::possible_alias_t< LBFGSStepSize > &, json &) |
|
template void | set_param (util::possible_alias_t< CBFGSParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< CBFGSParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< LipschitzEstimateParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< LipschitzEstimateParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< PANOCParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< PANOCParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< FISTAParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< FISTAParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< ZeroFPRParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< ZeroFPRParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< PANTRParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< PANTRParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< LBFGSParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< LBFGSParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< AndersonAccelParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< AndersonAccelParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< LBFGSDirectionParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< LBFGSDirectionParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< AndersonDirectionParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< AndersonDirectionParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< StructuredLBFGSDirectionParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< StructuredLBFGSDirectionParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< NewtonTRDirectionParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< NewtonTRDirectionParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< SteihaugCGParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< SteihaugCGParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< StructuredNewtonRegularizationParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< StructuredNewtonRegularizationParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< StructuredNewtonDirectionParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< StructuredNewtonDirectionParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< ALMParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< ALMParams< config_t > > &, json &) |
|
template void | set_param (util::possible_alias_t< PANOCOCPParams< config_t > > &, const json &) |
|
template void | get_param (const util::possible_alias_t< PANOCOCPParams< config_t > > &, json &) |
|
template<> |
void | set_param (bool &b, ParamString s) |
|
template<> |
void | set_param (std::string_view &v, ParamString s) |
|
template<> |
void | set_param (std::string &v, ParamString s) |
|
template<class T >
requires ((std::floating_point<T> || std::integral<T>) && !std::is_enum_v<T> && !std::is_same_v<T, bool>) |
void | set_param (T &f, ParamString s) |
| Update/overwrite the first argument based on the option in s .
|
|
template<> |
void | set_param (alpaqa::vec< config_t > &v, ParamString s) |
|
template<> |
void | set_param (vec_from_file< config_t > &v, ParamString s) |
|
template<class Duration >
requires is_duration<Duration> |
void | set_param (Duration &t, ParamString s) |
|
template<class... Ts> |
void | set_param (util::detail::dummy< Ts... > &, ParamString) |
|
template void | set_param (util::possible_alias_t< float > &, ParamString) |
|
template void | set_param (util::possible_alias_t< double, float > &, ParamString) |
|
template void | set_param (util::possible_alias_t< long double, double, float > &, ParamString) |
|
template void | set_param (util::possible_alias_t< int8_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< uint8_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< int16_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< uint16_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< int32_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< int64_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< uint32_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< uint64_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< long, int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< long long, long, int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< ptrdiff_t, long long, long, int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< unsigned long, unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< unsigned long long, unsigned long, unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< size_t, unsigned long long, unsigned long, unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString) |
|
template void | set_param (util::possible_alias_t< std::chrono::nanoseconds > &, ParamString) |
|
template void | set_param (util::possible_alias_t< std::chrono::microseconds > &, ParamString) |
|
template void | set_param (util::possible_alias_t< std::chrono::milliseconds > &, ParamString) |
|
template void | set_param (util::possible_alias_t< std::chrono::seconds > &, ParamString) |
|
template void | set_param (util::possible_alias_t< std::chrono::minutes > &, ParamString) |
|
template void | set_param (util::possible_alias_t< std::chrono::hours > &, ParamString) |
|
template void | set_param (util::possible_alias_t< PANOCStopCrit > &, ParamString) |
|
template void | set_param (util::possible_alias_t< LBFGSStepSize > &, ParamString) |
|
template void | set_param (util::possible_alias_t< PANOCParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< FISTAParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< ZeroFPRParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< PANTRParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< LBFGSParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< AndersonAccelParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< LBFGSDirectionParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< AndersonDirectionParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< StructuredLBFGSDirectionParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< NewtonTRDirectionParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< SteihaugCGParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< StructuredNewtonRegularizationParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< StructuredNewtonDirectionParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< ALMParams< config_t > > &, ParamString) |
|
template void | set_param (util::possible_alias_t< PANOCOCPParams< config_t > > &, ParamString) |
|
template<> |
void | set_param (Ipopt::IpoptApplication &, const json &j) |
|
template<> |
void | get_param (const Ipopt::IpoptApplication &, json &j) |
|
template<class T > |
static auto | possible_keys (const T &tbl) |
|
template<> |
void | set_param (Ipopt::IpoptApplication &app, ParamString s) |
|
template void | set_param (lbfgsb::LBFGSBSolver::Params &, const json &) |
|
template void | get_param (const lbfgsb::LBFGSBSolver::Params &, json &) |
|
template void | set_param (lbfgsb::LBFGSBSolver::Params &, ParamString) |
|
template void | set_param (qpalm::Settings &, const json &) |
|
template void | get_param (const qpalm::Settings &, json &) |
|
template void | set_param (qpalm::Settings &, ParamString) |
|