1 #ifndef STAN_LANG_AST_FUN_HAS_VAR_VIS_DEF_HPP 2 #define STAN_LANG_AST_FUN_HAS_VAR_VIS_DEF_HPP 26 for (
size_t i = 0; i < e.
args_.size(); ++i)
27 if (boost::apply_visitor(*
this, e.
args_[i].expr_))
40 for (
size_t i = 0; i < e.
args_.size(); ++i)
41 if (boost::apply_visitor(*
this, e.
args_[i].expr_))
48 return boost::apply_visitor(*
this, e.
y0_.
expr_)
54 return boost::apply_visitor(*
this, e.
y0_.
expr_)
59 return boost::apply_visitor(*
this, e.
expr_.
expr_);
63 return boost::apply_visitor(*
this, e.
expr_.
expr_);
67 return boost::apply_visitor(*
this, e.
cond_.
expr_)
73 return boost::apply_visitor(*
this, e.
left.
expr_)
std::string name_
Name of variable.
std::vector< expression > args_
Sequence of expressions for array values.
Node for holding a double literal.
const int parameter_origin
The origin of the variable is the parameter block.
has_var_vis(const variable_map &var_map)
Construct a non-data variable detection visitor.
Probability, optimization and sampling library.
expression y0_
Initial state (array of real).
Structure to hold an array expression.
Structure for an indexed expression.
std::vector< expression > args_
Sequence of argument expressions for function.
Structure for function application.
const int transformed_parameter_origin
The origin of the variable is the transformed parameter block.
expression expr_
Expression being indexed.
expression y0_
Initial state.
A map from function names to their base declarations and their origin.
Structure for integrate diff eq statement.
expr_type type_
Type of variable.
expression cond_
Condition (integer).
expression true_val_
Return value if condition is true.
expression left
First argument.
var_origin get_origin(const std::string &name) const
Return the origin of the variable declaration for the variable with the specified name...
expression theta_
Parameters.
int var_origin
The type of a variable indicating where a variable was declared.
base_expr_type base_type_
The base expression type.
const int INT_T
Integer type.
AST structure for holding an expression with a sequence of indexes.
bool operator()(const nil &e) const
Return true if the specified expression contains a non-data variable.
Structure for the conditional operator.
Structure to hold a variable.
expression right
Second argument.
expression subject
Argument.
const int local_origin
The origin of the variable is as a local variable.
const variable_map & var_map_
Reference to the global variable declaration mapping.
expression theta_
Parameters (array of real).
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.
expression false_val_
Return value if condition is false.
Structure for a diff eq integration statement with control parameters for the integrator.
expression expr_
Expression being indexed.