1#ifndef STORM_STORAGE_EXPRESSIONS_RationalLiteralExpression_H_
2#define STORM_STORAGE_EXPRESSIONS_RationalLiteralExpression_H_
10namespace expressions {
48 virtual void gatherVariables(std::set<storm::expressions::Variable>& variables)
const override;
49 virtual std::shared_ptr<BaseExpression const>
simplify()
const override;
65 storm::RationalNumber
getValue()
const;
69 virtual void printToStream(std::ostream& stream)
const override;
73 storm::RationalNumber value;
The base class of all expression classes.
This class is responsible for managing a set of typed variables and all expressions using these varia...
double getValueAsDouble() const
Retrieves the value of the double literal.
RationalLiteralExpression & operator=(RationalLiteralExpression &&)=delete
storm::RationalNumber getValue() const
Retrieves the value of the double literal.
virtual bool isRationalLiteralExpression() const override
RationalLiteralExpression & operator=(RationalLiteralExpression const &other)=delete
virtual double evaluateAsDouble(Valuation const *valuation=nullptr) const override
Evaluates the expression under the valuation of unknowns (variables and constants) given by the valua...
RationalLiteralExpression(RationalLiteralExpression &&)=default
virtual void printToStream(std::ostream &stream) const override
Prints the expression to the given stream.
virtual ~RationalLiteralExpression()=default
RationalLiteralExpression(RationalLiteralExpression const &other)=default
virtual void gatherVariables(std::set< storm::expressions::Variable > &variables) const override
Retrieves the set of all variables that appear in the expression.
virtual boost::any accept(ExpressionVisitor &visitor, boost::any const &data) const override
Accepts the given visitor by calling its visit method.
virtual bool isLiteral() const override
Retrieves whether the expression is a literal.
virtual std::shared_ptr< BaseExpression const > simplify() const override
Simplifies the expression according to some simple rules.
The base class of all valuations of variables.