4 if (!pid.
type.has_value()) {
5 LOG_ERROR(
"LogicError",
"Use of incomplete ParamId to mutate parameter. Please specify a ParameterType.");
12 if (!pid.
type.has_value()) {
13 LOG_ERROR(
"LogicError",
"Use of incomplete ParamId to mutate parameter. Please specify a ParameterType.");
#define LOG_ERROR(type,...)
Macro for logging error messages and terminating the application.
Concrete mutator that shifts parameter values.
ParameterMode
Defines the modes in which a parameter can operate.
void mutate(const ParamId &pid, scalar_t value) override
Shifts the value of a parameter by a given amount.
void change_mode(const ParamId &pid, ParameterMode mode) override
Changes the mode of a parameter (e.g., from FIXED to SHIFTABLE).
static std::shared_ptr< Parameters > GetInstance(ParameterType id=ParameterType::SM)
Returns the singleton-like repository for a given parameter type.
Composite identifier for a single parameter.
std::optional< ParameterType > type
Optional high-level parameter category.