Stan  2.14.0
probability, sampling & optimization
is_nil_vis.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_IS_NIL_VIS_HPP
2 #define STAN_LANG_AST_FUN_IS_NIL_VIS_HPP
3 
4 #include <boost/variant/static_visitor.hpp>
5 
6 namespace stan {
7  namespace lang {
8 
9  struct nil;
10  struct int_literal;
11  struct double_literal;
12  struct array_expr;
13  struct variable;
14  struct fun;
15  struct integrate_ode;
16  struct integrate_ode_control;
17  struct index_op;
18  struct index_op_sliced;
19  struct conditional_op;
20  struct binary_op;
21  struct unary_op;
22 
27  struct is_nil_vis : public boost::static_visitor<bool> {
28  bool operator()(const nil& x) const; // NOLINT(runtime/explicit)
29  bool operator()(const int_literal& x) const; // NOLINT(runtime/explicit)
30  bool operator()(const double_literal& x) const; // NOLINT
31  bool operator()(const array_expr& x) const; // NOLINT
32  bool operator()(const variable& x) const; // NOLINT(runtime/explicit)
33  bool operator()(const integrate_ode& x) const; // NOLINT
34  bool operator()(const integrate_ode_control& x) const; // NOLINT
35  bool operator()(const fun& x) const; // NOLINT(runtime/explicit)
36  bool operator()(const index_op& x) const; // NOLINT(runtime/explicit)
37  bool operator()(const index_op_sliced& x) const; // NOLINT
38  bool operator()(const conditional_op& x) const; // NOLINT
39  bool operator()(const binary_op& x) const; // NOLINT(runtime/explicit)
40  bool operator()(const unary_op& x) const; // NOLINT(runtime/explicit)
41  };
42 
43  }
44 }
45 #endif
bool operator()(const nil &x) const
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
Structure for integrate diff eq statement.
Callback functor for determining if one of the variant types making up an expression is nil...
Definition: is_nil_vis.hpp:27
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
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.