1#ifndef STORM_STORAGE_EXPRESSIONS_VARIABLEEXPRESSION_H_
2#define STORM_STORAGE_EXPRESSIONS_VARIABLEEXPRESSION_H_
35 virtual void gatherVariables(std::set<storm::expressions::Variable>& variables)
const override;
36 virtual std::shared_ptr<BaseExpression const>
simplify()
const override;
56 virtual void printToStream(std::ostream& stream)
const override;
The base class of all expression classes.
The base class of all valuations of variables.
virtual void printToStream(std::ostream &stream) const override
Prints the expression to the given stream.
VariableExpression & operator=(VariableExpression const &)=delete
virtual int_fast64_t evaluateAsInt(Valuation const *valuation=nullptr) const override
Evaluates the expression under the valuation of unknowns (variables and constants) given by the valua...
VariableExpression(VariableExpression &&)=default
virtual std::string const & getIdentifier() const override
Retrieves the identifier associated with this expression.
virtual boost::any accept(ExpressionVisitor &visitor, boost::any const &data) const override
Accepts the given visitor by calling its visit method.
virtual std::shared_ptr< BaseExpression const > simplify() const override
Simplifies the expression according to some simple rules.
virtual ~VariableExpression()=default
virtual bool containsVariables() const override
Retrieves whether the expression contains a variable.
VariableExpression & operator=(VariableExpression &&)=delete
virtual bool isVariableExpression() const override
virtual bool isVariable() const override
Retrieves whether the expression is a variable.
VariableExpression(VariableExpression const &)=default
virtual bool evaluateAsBool(Valuation const *valuation=nullptr) const override
Evaluates the expression under the valuation of unknowns (variables and constants) given by the valua...
Variable const & getVariable() const
Retrieves the variable associated with this expression.
virtual double evaluateAsDouble(Valuation const *valuation=nullptr) const override
Evaluates the expression under the valuation of unknowns (variables and constants) given by the valua...
std::string const & getVariableName() const
Retrieves the name of the variable associated with this expression.
virtual void gatherVariables(std::set< storm::expressions::Variable > &variables) const override
Retrieves the set of all variables that appear in the expression.