5 #include "dreal/smt2/sort.h" 12 enum class Type { EXPRESSION, FORMULA };
69 void Check(Sort s)
const;
81 std::ostream& operator<<(std::ostream& os,
const Term& t);
Term & operator=(const Term &)=default
Default copy assign operator.
Sum type of symbolic::Expression and symbolic::Formula.
Definition: api.cc:9
~Term()=default
Default destructor.
Term()
Default Constructor. It constructs Term(false).
Definition: term.cc:16
void Check(Sort s) const
Checks if this term can be matched with s.
Definition: term.cc:56
Type
Supported types of symbolic variables.
Definition: symbolic_variable.h:22
Represents a symbolic variable.
Definition: symbolic_variable.h:16
const Formula & formula() const
Returns the formula inside.
Definition: term.cc:33
const Expression & expression() const
Returns the expression inside.
Definition: term.cc:22
Formula & mutable_formula()
Returns the formula inside.
Definition: term.cc:44
Term Substitute(const Variable &v, const Term &t)
Creates a new term which substitutes the variable v in this term with t.
Definition: term.cc:46
Expression & mutable_expression()
Returns the expression inside.
Definition: term.cc:29
This is the header file that we consolidate Drake's symbolic classes and expose them inside of dreal ...
Represents a symbolic form of an expression.
Definition: symbolic_expression.h:164
Type type() const
Returns its type.
Definition: term.cc:20