Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
UnaryExpression.h
Go to the documentation of this file.
1#ifndef STORM_STORAGE_EXPRESSIONS_UNARYEXPRESSION_H_
2#define STORM_STORAGE_EXPRESSIONS_UNARYEXPRESSION_H_
3
6
7namespace storm {
8namespace expressions {
10 public:
18 UnaryExpression(ExpressionManager const& manager, Type const& type, std::shared_ptr<BaseExpression const> const& operand);
19
20 // Instantiate constructors and assignments with their default implementations.
21 UnaryExpression(UnaryExpression const& other) = default;
22 UnaryExpression& operator=(UnaryExpression const& other) = delete;
25 virtual ~UnaryExpression() = default;
26
27 // Override base class methods.
28 virtual bool isFunctionApplication() const override;
29 virtual bool containsVariables() const override;
30 virtual uint_fast64_t getArity() const override;
31 virtual std::shared_ptr<BaseExpression const> getOperand(uint_fast64_t operandIndex) const override;
32 virtual void gatherVariables(std::set<storm::expressions::Variable>& variables) const override;
33
39 std::shared_ptr<BaseExpression const> const& getOperand() const;
40
41 private:
42 // The operand of the unary expression.
43 std::shared_ptr<BaseExpression const> operand;
44};
45} // namespace expressions
46} // namespace storm
47
48#endif /* STORM_STORAGE_EXPRESSIONS_UNARYEXPRESSION_H_ */
The base class of all expression classes.
This class is responsible for managing a set of typed variables and all expressions using these varia...
UnaryExpression & operator=(UnaryExpression const &other)=delete
virtual bool isFunctionApplication() const override
Checks if the expression is a function application (of any sort).
UnaryExpression & operator=(UnaryExpression &&)=delete
virtual void gatherVariables(std::set< storm::expressions::Variable > &variables) const override
Retrieves the set of all variables that appear in the expression.
std::shared_ptr< BaseExpression const > const & getOperand() const
Retrieves the operand of the unary expression.
virtual bool containsVariables() const override
Retrieves whether the expression contains a variable.
virtual uint_fast64_t getArity() const override
Returns the arity of the expression.
UnaryExpression(UnaryExpression &&)=default
UnaryExpression(UnaryExpression const &other)=default
LabParser.cpp.
Definition cli.cpp:18