Stan  2.14.0
probability, sampling & optimization
var_decl_has_def_vis.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_VAR_DECL_HAS_DEF_VIS_HPP
2 #define STAN_LANG_AST_FUN_VAR_DECL_HAS_DEF_VIS_HPP
3 
18 #include <boost/variant/static_visitor.hpp>
19 #include <string>
20 
21 namespace stan {
22  namespace lang {
23 
28  struct var_decl_has_def_vis : public boost::static_visitor<bool> {
33 
41  bool operator()(const nil& x) const;
42 
50  bool operator()(const int_var_decl& x) const;
51 
59  bool operator()(const double_var_decl& x) const;
60 
68  bool operator()(const vector_var_decl& x) const;
69 
77  bool operator()(const row_vector_var_decl& x) const;
78 
86  bool operator()(const matrix_var_decl& x) const;
87 
95  bool operator()(const simplex_var_decl& x) const;
96 
104  bool operator()(const unit_vector_var_decl& x) const;
105 
113  bool operator()(const ordered_var_decl& x) const;
114 
122  bool operator()(const positive_ordered_var_decl& x) const;
123 
131  bool operator()(const cholesky_factor_var_decl& x) const;
132 
140  bool operator()(const cholesky_corr_var_decl& x) const;
141 
149  bool operator()(const cov_matrix_var_decl& x) const;
150 
158  bool operator()(const corr_matrix_var_decl& x) const;
159  };
160 
161  }
162 }
163 #endif
An integer variable declaration and optional definition.
Structure to hold the declaration of a positive ordered vector.
Structure to hold a row vector variable declaration.
Variable declaration visitor functor for determining if a variable declaration includes a definition...
Probability, optimization and sampling library.
var_decl_has_def_vis()
Construct the visitor.
Structure to hold a covariance matrix variable declaration.
Structure to hold the declaration of a simplex.
Structure to hold a Cholesky factor for a correlation matrix variable declaration.
Structure to hold the declaration of a unit vector.
bool operator()(const nil &x) const
Return true if the specified variable declaration includes a variable definition (always false for th...
Structure to hold a matrix variable declaration.
Structure to hold a Cholesky factor variable declaration.
Structure to hold a column vector variable declaration.
Structure to hold a correlation matrix variable declaration.
An integer variable declaration and optional definition.
Structure to hold the declaration of an ordered vector.
The nil structure used as a placeholder for undefined or empty values in several structures.
Definition: nil.hpp:11

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