![]() |
Stan
2.14.0
probability, sampling & optimization
|
A visitor for the variant type of variable declarations that returns the name of the variable. More...
#include <name_vis.hpp>
Public Member Functions | |
name_vis () | |
Construct a name visitor. More... | |
std::string | operator() (const nil &x) const |
Return the empty string. More... | |
std::string | operator() (const int_var_decl &x) const |
Return the name of the variable. More... | |
std::string | operator() (const double_var_decl &x) const |
Return the name of the variable. More... | |
std::string | operator() (const vector_var_decl &x) const |
Return the name of the variable. More... | |
std::string | operator() (const row_vector_var_decl &x) const |
Return the name of the variable. More... | |
std::string | operator() (const matrix_var_decl &x) const |
Return the name of the variable. More... | |
std::string | operator() (const simplex_var_decl &x) const |
Return the name of the variable. More... | |
std::string | operator() (const unit_vector_var_decl &x) const |
Return the name of the variable. More... | |
std::string | operator() (const ordered_var_decl &x) const |
Return the name of the variable. More... | |
std::string | operator() (const positive_ordered_var_decl &x) const |
Return the name of the variable. More... | |
std::string | operator() (const cholesky_factor_var_decl &x) const |
Return the name of the variable. More... | |
std::string | operator() (const cholesky_corr_var_decl &x) const |
Return the name of the variable. More... | |
std::string | operator() (const cov_matrix_var_decl &x) const |
Return the name of the variable. More... | |
std::string | operator() (const corr_matrix_var_decl &x) const |
Return the name of the variable. More... | |
A visitor for the variant type of variable declarations that returns the name of the variable.
Definition at line 28 of file name_vis.hpp.
stan::lang::name_vis::name_vis | ( | ) |
Construct a name visitor.
Definition at line 10 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const nil & | x | ) | const |
Return the empty string.
x | variable declaration |
Definition at line 12 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const int_var_decl & | x | ) | const |
Return the name of the variable.
x | variable declaration |
Definition at line 16 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const double_var_decl & | x | ) | const |
Return the name of the variable.
x | variable declaration |
Definition at line 20 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const vector_var_decl & | x | ) | const |
Return the name of the variable.
x | variable declaration |
Definition at line 24 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const row_vector_var_decl & | x | ) | const |
Return the name of the variable.
x | variable declaration |
Definition at line 28 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const matrix_var_decl & | x | ) | const |
Return the name of the variable.
x | variable declaration |
Definition at line 32 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const simplex_var_decl & | x | ) | const |
Return the name of the variable.
x | variable declaration |
Definition at line 40 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const unit_vector_var_decl & | x | ) | const |
Return the name of the variable.
x | variable declaration |
Definition at line 36 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const ordered_var_decl & | x | ) | const |
Return the name of the variable.
x | variable declaration |
Definition at line 44 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const positive_ordered_var_decl & | x | ) | const |
Return the name of the variable.
x | variable declaration |
Definition at line 48 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const cholesky_factor_var_decl & | x | ) | const |
Return the name of the variable.
x | variable declaration |
Definition at line 52 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const cholesky_corr_var_decl & | x | ) | const |
Return the name of the variable.
x | variable declaration |
Definition at line 56 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const cov_matrix_var_decl & | x | ) | const |
Return the name of the variable.
x | variable declaration |
Definition at line 60 of file name_vis_def.hpp.
std::string stan::lang::name_vis::operator() | ( | const corr_matrix_var_decl & | x | ) | const |
Return the name of the variable.
x | variable declaration |
Definition at line 64 of file name_vis_def.hpp.