33struct fmt::formatter<
slp::ExpressionType> {
38 constexpr auto parse(fmt::format_parse_context& ctx) {
39 return m_underlying.parse(ctx);
48 template <
typename FmtContext>
54 return m_underlying.format(
"none", ctx);
56 return m_underlying.format(
"constant", ctx);
58 return m_underlying.format(
"linear", ctx);
60 return m_underlying.format(
"quadratic", ctx);
62 return m_underlying.format(
"nonlinear", ctx);
69 fmt::formatter<const char*> m_underlying;
Definition expression_graph.hpp:11
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