Stan  2.14.0
probability, sampling & optimization
name_vis.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_NAME_VIS_HPP
2 #define STAN_LANG_AST_FUN_NAME_VIS_HPP
3 
18 #include <boost/variant/static_visitor.hpp>
19 #include <string>
20 
21 namespace stan {
22  namespace lang {
23 
28  struct name_vis : public boost::static_visitor<std::string> {
32  name_vis();
33 
40  std::string operator()(const nil& x) const;
41 
48  std::string operator()(const int_var_decl& x) const;
49 
56  std::string operator()(const double_var_decl& x) const;
57 
64  std::string operator()(const vector_var_decl& x) const;
65 
72  std::string operator()(const row_vector_var_decl& x) const;
73 
80  std::string operator()(const matrix_var_decl& x) const;
81 
88  std::string operator()(const simplex_var_decl& x) const;
89 
96  std::string operator()(const unit_vector_var_decl& x) const;
97 
104  std::string operator()(const ordered_var_decl& x) const;
105 
112  std::string operator()(const positive_ordered_var_decl& x) const;
113 
120  std::string operator()(const cholesky_factor_var_decl& x) const;
121 
128  std::string operator()(const cholesky_corr_var_decl& x) const;
129 
136  std::string operator()(const cov_matrix_var_decl& x) const;
137 
144  std::string operator()(const corr_matrix_var_decl& x) const;
145  };
146 
147  }
148 }
149 #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.
Probability, optimization and sampling library.
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.
A visitor for the variant type of variable declarations that returns the name of the variable...
Definition: name_vis.hpp:28
Structure to hold the declaration of a unit vector.
Structure to hold a matrix variable declaration.
Structure to hold a Cholesky factor variable declaration.
Structure to hold a column vector variable declaration.
std::string operator()(const nil &x) const
Return the empty string.
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
name_vis()
Construct a name visitor.

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