Stan  2.14.0
probability, sampling & optimization
has_non_param_var_vis.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_HAS_NON_PARAM_VAR_VIS_HPP
2 #define STAN_LANG_AST_FUN_HAS_NON_PARAM_VAR_VIS_HPP
3 
5 #include <boost/variant/static_visitor.hpp>
6 
7 namespace stan {
8  namespace lang {
9 
14  struct has_non_param_var_vis : public boost::static_visitor<bool> {
22  explicit has_non_param_var_vis(const variable_map& var_map);
23 
31  bool operator()(const nil& e) const;
32 
40  bool operator()(const int_literal& e) const;
41 
49  bool operator()(const double_literal& e) const;
50 
58  bool operator()(const array_expr& e) const;
59 
67  bool operator()(const variable& e) const;
68 
76  bool operator()(const integrate_ode& e) const;
77 
85  bool operator()(const integrate_ode_control& e) const;
86 
94  bool operator()(const fun& e) const;
95 
103  bool operator()(const index_op& e) const;
104 
112  bool operator()(const index_op_sliced& e) const;
113 
121  bool operator()(const conditional_op& e) const;
122 
130  bool operator()(const binary_op& e) const;
131 
139  bool operator()(const unary_op& e) const;
140 
145  };
146 
147  }
148 }
149 #endif
has_non_param_var_vis(const variable_map &var_map)
Construct the visitor with the specified global variable declaration mapping.
Node for holding a double literal.
Probability, optimization and sampling library.
Structure to hold an array expression.
Definition: array_expr.hpp:17
Structure for an indexed expression.
Definition: index_op.hpp:14
Structure for function application.
Definition: fun.hpp:17
A map from function names to their base declarations and their origin.
Structure for integrate diff eq statement.
bool operator()(const nil &e) const
Return true if the specified expression contains a variable not declared as a parameter.
Visitor to determine if an expression contains a variable that is not declared as a parameter...
AST structure for holding an expression with a sequence of indexes.
Structure for the conditional operator.
Structure to hold a variable.
Definition: variable.hpp:14
const variable_map & var_map_
Reference to global variable declaration map.
AST structure for unary operations consisting of an operation and argument.
Definition: unary_op.hpp:14
Node for storing binary operations consisting of an operation and left and right arguments.
Definition: binary_op.hpp:15
The nil structure used as a placeholder for undefined or empty values in several structures.
Definition: nil.hpp:11
Structure for a diff eq integration statement with control parameters for the integrator.

     [ Stan Home Page ] © 2011–2016, Stan Development Team.