Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
BinaryNumericalFunctionExpression.h
Go to the documentation of this file.
1#ifndef STORM_STORAGE_EXPRESSIONS_BINARYNUMERICALFUNCTIONEXPRESSION_H_
2#define STORM_STORAGE_EXPRESSIONS_BINARYNUMERICALFUNCTIONEXPRESSION_H_
3
6
7namespace storm {
8namespace expressions {
10 public:
15
25 BinaryNumericalFunctionExpression(ExpressionManager const& manager, Type const& type, std::shared_ptr<BaseExpression const> const& firstOperand,
26 std::shared_ptr<BaseExpression const> const& secondOperand, OperatorType operatorType);
27
28 // Instantiate constructors and assignments with their default implementations.
33
35
36 // Override base class methods.
37 virtual storm::expressions::OperatorType getOperator() const override;
38 virtual int_fast64_t evaluateAsInt(Valuation const* valuation = nullptr) const override;
39 virtual double evaluateAsDouble(Valuation const* valuation = nullptr) const override;
40 virtual std::shared_ptr<BaseExpression const> simplify() const override;
41 virtual boost::any accept(ExpressionVisitor& visitor, boost::any const& data) const override;
42 virtual bool isBinaryNumericalFunctionExpression() const override;
43
50
51 protected:
52 // Override base class method.
53 virtual void printToStream(std::ostream& stream) const override;
54
55 private:
56 // The operator of the expression.
57 OperatorType operatorType;
58};
59} // namespace expressions
60} // namespace storm
61
62#endif /* STORM_STORAGE_EXPRESSIONS_BINARYNUMERICALFUNCTIONEXPRESSION_H_ */
The base class of all binary expressions.
BinaryNumericalFunctionExpression(BinaryNumericalFunctionExpression &&)=default
virtual double evaluateAsDouble(Valuation const *valuation=nullptr) const override
Evaluates the expression under the valuation of unknowns (variables and constants) given by the valua...
BinaryNumericalFunctionExpression & operator=(BinaryNumericalFunctionExpression &&)=delete
BinaryNumericalFunctionExpression & operator=(BinaryNumericalFunctionExpression const &other)=delete
BinaryNumericalFunctionExpression(BinaryNumericalFunctionExpression const &other)=default
OperatorType getOperatorType() const
Retrieves the operator associated with the expression.
virtual boost::any accept(ExpressionVisitor &visitor, boost::any const &data) const override
Accepts the given visitor by calling its visit method.
virtual void printToStream(std::ostream &stream) const override
Prints the expression to the given stream.
virtual storm::expressions::OperatorType getOperator() const override
Retrieves the operator of a function application.
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...
OperatorType
An enum type specifying the different operators applicable.
virtual std::shared_ptr< BaseExpression const > simplify() const override
Simplifies the expression according to some simple rules.
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.
Definition Valuation.h:16
LabParser.cpp.
Definition cli.cpp:18