|
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<> |
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>) |
void | set_param (T &f, ParamString s) |
| Update/overwrite the first argument based on the option in s .
|
|
template<> |
void | set_param (vec< config_t > &v, ParamString s) |
|
template<> |
void | set_param (vec_from_file< config_t > &v, ParamString s) |
|
template<class Rep , class Period > |
void | set_param (std::chrono::duration< Rep, Period > &t, ParamString s) |
|
template<class T , class T_actual , class A > |
auto | param_setter (A T_actual::*attr) |
| Return a function that applies set_param to the given attribute of a value of type T .
|
|
template<class T > |
auto | possible_keys () |
| Return a string enumerating the possible attribute names for the struct type T .
|
|
template<class T >
requires requires { dict_to_struct_table<T>::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 .
|
|
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<> |
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<> |
void | set_param (alpaqa::vec< config_t > &v, ParamString s) |
|
template<> |
void | set_param (vec_from_file< config_t > &v, ParamString s) |
|
template<> |
void | set_param (LBFGSStepSize &t, ParamString s) |
|
template<> |
void | set_param (PANOCStopCrit &t, ParamString s) |
|
template<class... Ts> |
void | set_param (detail::_dummy< Ts... > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< float > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< double, float > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< long double, double, float > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< int8_t > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< uint8_t > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< int16_t > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< uint16_t > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< int32_t > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< int64_t > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< uint32_t > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< uint64_t > &, ParamString) |
|
template void | set_param (detail::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 (detail::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 (detail::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 (detail::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 (detail::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 (detail::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 (detail::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 (detail::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 (detail::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 (detail::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 (detail::possible_alias_t< std::chrono::nanoseconds > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< std::chrono::microseconds > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< std::chrono::milliseconds > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< std::chrono::seconds > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< std::chrono::minutes > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< std::chrono::hours > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< PANOCParams< config_t > > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< ZeroFPRParams< config_t > > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< PANTRParams< config_t > > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< LBFGSParams< config_t > > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< AndersonAccelParams< config_t > > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< LBFGSDirectionParams< config_t > > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< AndersonDirectionParams< config_t > > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< StructuredLBFGSDirectionParams< config_t > > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< NewtonTRDirectionParams< config_t > > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< SteihaugCGParams< config_t > > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< StructuredNewtonRegularizationParams< config_t > > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< StructuredNewtonDirectionParams< config_t > > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< ALMParams< config_t > > &, ParamString) |
|
template void | set_param (detail::possible_alias_t< PANOCOCPParams< config_t > > &, ParamString) |
|
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 &, ParamString) |
|
template void | set_param (qpalm::Settings &, ParamString) |
|