40 constexpr auto parse(fmt::format_parse_context& ctx) {
41 return m_underlying.parse(ctx);
50 template <
typename FmtContext>
52 FmtContext& ctx)
const {
57 return m_underlying.format(
"none", ctx);
59 return m_underlying.format(
"constant", ctx);
61 return m_underlying.format(
"linear", ctx);
63 return m_underlying.format(
"quadratic", ctx);
65 return m_underlying.format(
"nonlinear", ctx);
72 fmt::formatter<const char*> m_underlying;
Definition to_underlying.hpp:7
ExpressionType
Expression type.
Definition expression_type.hpp:16
@ CONSTANT
The expression is a constant.
Definition expression_type.hpp:20
@ QUADRATIC
The expression is composed of quadratic and lower-order operators.
Definition expression_type.hpp:24
@ LINEAR
The expression is composed of linear and lower-order operators.
Definition expression_type.hpp:22
@ NONE
There is no expression.
Definition expression_type.hpp:18
@ NONLINEAR
The expression is composed of nonlinear and lower-order operators.
Definition expression_type.hpp:26
void unreachable()
Definition unreachable.hpp:8
@ NONE
No test.
Definition SysIdRoutineLog.hpp:35