1#ifndef STORM_STORAGE_EXPRESSIONS_BOOLEANLITERALEXPRESSION_H_
2#define STORM_STORAGE_EXPRESSIONS_BOOLEANLITERALEXPRESSION_H_
30 virtual bool isTrue()
const override;
31 virtual bool isFalse()
const override;
32 virtual void gatherVariables(std::set<storm::expressions::Variable>& variables)
const override;
33 virtual std::shared_ptr<BaseExpression const>
simplify()
const override;
45 virtual void printToStream(std::ostream& stream)
const override;
The base class of all expression classes.
virtual void printToStream(std::ostream &stream) const override
Prints the expression to the given stream.
BooleanLiteralExpression & operator=(BooleanLiteralExpression &&)=delete
bool getValue() const
Retrieves the value of the boolean literal.
virtual bool isLiteral() const override
Retrieves whether the expression is a literal.
virtual ~BooleanLiteralExpression()=default
virtual boost::any accept(ExpressionVisitor &visitor, boost::any const &data) const override
Accepts the given visitor by calling its visit method.
virtual bool isBooleanLiteralExpression() const override
virtual bool isTrue() const override
Checks if the expression is equal to the boolean literal true.
virtual void gatherVariables(std::set< storm::expressions::Variable > &variables) const override
Retrieves the set of all variables that appear in the expression.
virtual std::shared_ptr< BaseExpression const > simplify() const override
Simplifies the expression according to some simple rules.
virtual bool evaluateAsBool(Valuation const *valuation=nullptr) const override
Evaluates the expression under the valuation of unknowns (variables and constants) given by the valua...
BooleanLiteralExpression(BooleanLiteralExpression &&)=default
virtual bool isFalse() const override
Checks if the expression is equal to the boolean literal false.
BooleanLiteralExpression(BooleanLiteralExpression const &other)=default
BooleanLiteralExpression & operator=(BooleanLiteralExpression const &other)=delete
This class is responsible for managing a set of typed variables and all expressions using these varia...
The base class of all valuations of variables.