1 #ifndef STAN_LANG_AST_FUN_VAR_OCCURS_VIS_HPP 2 #define STAN_LANG_AST_FUN_VAR_OCCURS_VIS_HPP 4 #include <boost/variant/static_visitor.hpp> 12 struct double_literal;
17 struct integrate_ode_control;
19 struct index_op_sliced;
20 struct conditional_op;
var_occurs_vis(const variable &e)
Construct a visitor to detect whether the specified variable occurs in a statement.
Node for holding a double literal.
Probability, optimization and sampling library.
Structure to hold an array expression.
Structure for an indexed expression.
Structure for function application.
Structure for integrate diff eq statement.
bool operator()(const nil &e) const
Return true if the variable occurs in the specified expression.
const std::string var_name_
The name of the variable for which to search.
AST structure for holding an expression with a sequence of indexes.
Structure for the conditional operator.
Structure to hold a variable.
AST structure for unary operations consisting of an operation and argument.
Node for storing binary operations consisting of an operation and left and right arguments.
The nil structure used as a placeholder for undefined or empty values in several structures.
Structure for a diff eq integration statement with control parameters for the integrator.