22 this->
getOperand()->gatherVariables(variables);
34 STORM_LOG_THROW(operandIndex == 0, storm::exceptions::InvalidAccessException,
"Unable to access operand " << operandIndex <<
" in expression of arity 2.");
The base class of all expression classes.
virtual bool containsVariables() const
Retrieves whether the expression contains a variable.
This class is responsible for managing a set of typed variables and all expressions using these varia...
UnaryExpression(ExpressionManager const &manager, Type const &type, std::shared_ptr< BaseExpression const > const &operand)
Creates a unary expression with the given return type and operand.
virtual bool isFunctionApplication() const override
Checks if the expression is a function application (of any sort).
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.
#define STORM_LOG_THROW(cond, exception, message)