Stan  2.14.0
probability, sampling & optimization
is_nil_vis_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_IS_NIL_VIS_DEF_HPP
2 #define STAN_LANG_AST_FUN_IS_NIL_VIS_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 
6 namespace stan {
7  namespace lang {
8 
9  bool is_nil_vis::operator()(const nil& /*x*/) const {
10  return true;
11  }
12 
13  bool is_nil_vis::operator()(const int_literal& /*x*/) const {
14  return false;
15  }
16 
17  bool is_nil_vis::operator()(const double_literal& /* x */) const {
18  return false;
19  }
20 
21  bool is_nil_vis::operator()(const array_expr& /* x */) const {
22  return false;
23  }
24 
25  bool is_nil_vis::operator()(const variable& /* x */) const {
26  return false;
27  }
28 
29  bool is_nil_vis::operator()(const integrate_ode& /* x */) const {
30  return false;
31  }
32 
33  bool is_nil_vis::operator()(const integrate_ode_control& /* x */) const {
34  return false;
35  }
36 
37  bool is_nil_vis::operator()(const fun& /* x */) const {
38  return false;
39  }
40 
41  bool is_nil_vis::operator()(const index_op& /* x */) const {
42  return false;
43  }
44 
45  bool is_nil_vis::operator()(const index_op_sliced& /* x */) const {
46  return false;
47  }
48 
49  bool is_nil_vis::operator()(const conditional_op& /* x */) const {
50  return false;
51  }
52 
53  bool is_nil_vis::operator()(const binary_op& /* x */) const {
54  return false;
55  }
56 
57  bool is_nil_vis::operator()(const unary_op& /* x */) const {
58  return false;
59  }
60 
61  }
62 }
63 #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.
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.