33namespace func_sketch::expressions {
93 [[nodiscard]]
const T&
as()
const {
116struct fmt::formatter<func_sketch::expressions::Expression>
117 : fmt::formatter<string_view> {
126 format_context& context)
const -> format_context::iterator;
134struct fmt::formatter<func_sketch::expressions::Expression*>
135 : fmt::formatter<string_view> {
144 format_context& context)
const -> format_context::iterator;
Definition of BinaryExpression structure.
Expression(ParameterExpression expression)
Constructor.
Expression(ConstantExpression expression)
Constructor.
Expression(UnaryExpression expression)
Constructor.
Expression(FunctionCallExpression expression)
Constructor.
const T & as() const
Get as a type.
VariantType expression_
Expression.
Expression(BinaryExpression expression)
Constructor.
const VariantType & as_variant() const
Get the expression as variant.
std::variant< ConstantExpression, ParameterExpression, UnaryExpression, BinaryExpression, FunctionCallExpression > VariantType
Type of the variant of expressions.
Definition of ConstantExpression structure.
Declaration of Expression class.
Definition of FunctionCallExpression structure.
Definition of ParameterExpression structure.
Struct of binary expressions.
Struct of constant expressions.
Struct of function call expressions.
Struct of parameter expressions.
Struct of unary expressions.
Definition of UnaryExpression structure.