dReal4
FormulaVar Class Reference

Symbolic formula representing a Boolean variable. More...

#include </home/soonhokong/work/dreal4/third_party/com_github_robotlocomotion_drake/dreal/symbolic/symbolic_formula_cell.h>

Inheritance diagram for FormulaVar:
FormulaCell

Public Member Functions

 FormulaVar (const Variable &v)
 Constructs a formula from var. More...
 
bool EqualTo (const FormulaCell &f) const override
 Checks structural equality. More...
 
bool Less (const FormulaCell &f) const override
 Checks ordering. More...
 
bool Evaluate (const Environment &env) const override
 Evaluates under a given environment. More...
 
Formula Substitute (const ExpressionSubstitution &expr_subst, const FormulaSubstitution &formula_substubst) override
 Returns a Formula obtained by replacing all occurrences of the variables in s in the current formula cell with the corresponding expressions in s.
 
std::ostream & Display (std::ostream &os) const override
 Outputs string representation of formula into output stream os. More...
 
const Variableget_variable () const
 
- Public Member Functions inherited from FormulaCell
 FormulaCell ()=delete
 Default constructor (DELETED). More...
 
FormulaCelloperator= (FormulaCell &&f)=delete
 Move-assign (DELETED). More...
 
 FormulaCell (const FormulaCell &f)=delete
 Copy-construct a formula from an lvalue. More...
 
 FormulaCell (FormulaCell &&f)=delete
 Move-construct a formula from an rvalue (DELETED). More...
 
FormulaCelloperator= (const FormulaCell &f)=delete
 Copy-assign (DELETED). More...
 
FormulaKind get_kind () const
 Returns kind of formula. More...
 
size_t get_hash () const
 Returns hash of formula. More...
 
const VariablesGetFreeVariables () const
 Returns set of free variables in formula. More...
 
unsigned use_count () const
 Returns the reference count of this cell. More...
 
bool include_ite () const
 Returns true if this symbolic formula includes an ITE (If-Then-Else) expression. More...
 

Additional Inherited Members

- Protected Member Functions inherited from FormulaCell
 FormulaCell (FormulaKind k, size_t hash, bool include_ite, Variables variables)
 Construct FormulaCell of kind k with hash. More...
 
virtual ~FormulaCell ()=default
 Default destructor. More...
 
Formula GetFormula ()
 Returns a Formula pointing to this FormulaCell. More...
 

Detailed Description

Symbolic formula representing a Boolean variable.

Constructor & Destructor Documentation

◆ FormulaVar()

FormulaVar ( const Variable v)
explicit

Constructs a formula from var.

Precondition
var is of BOOLEAN type and not a dummy variable.

Member Function Documentation

◆ Display()

ostream & Display ( std::ostream &  os) const
overridevirtual

Outputs string representation of formula into output stream os.

Implements FormulaCell.

◆ EqualTo()

bool EqualTo ( const FormulaCell c) const
overridevirtual

Checks structural equality.

Implements FormulaCell.

◆ Evaluate()

bool Evaluate ( const Environment env) const
overridevirtual

Evaluates under a given environment.

Implements FormulaCell.

◆ Less()

bool Less ( const FormulaCell c) const
overridevirtual

Checks ordering.

Implements FormulaCell.


The documentation for this class was generated from the following files: