Stan  2.14.0
probability, sampling & optimization
Public Member Functions | List of all members
stan::lang::name_vis Struct Reference

A visitor for the variant type of variable declarations that returns the name of the variable. More...

#include <name_vis.hpp>

Inheritance diagram for stan::lang::name_vis:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

§ name_vis()

stan::lang::name_vis::name_vis ( )

Construct a name visitor.

Definition at line 10 of file name_vis_def.hpp.

Member Function Documentation

§ operator()() [1/14]

std::string stan::lang::name_vis::operator() ( const nil x) const

Return the empty string.

Parameters
xvariable declaration
Returns
the empty string

Definition at line 12 of file name_vis_def.hpp.

§ operator()() [2/14]

std::string stan::lang::name_vis::operator() ( const int_var_decl x) const

Return the name of the variable.

Parameters
xvariable declaration
Returns
the name of the variable being declared

Definition at line 16 of file name_vis_def.hpp.

§ operator()() [3/14]

std::string stan::lang::name_vis::operator() ( const double_var_decl x) const

Return the name of the variable.

Parameters
xvariable declaration
Returns
the name of the variable being declared

Definition at line 20 of file name_vis_def.hpp.

§ operator()() [4/14]

std::string stan::lang::name_vis::operator() ( const vector_var_decl x) const

Return the name of the variable.

Parameters
xvariable declaration
Returns
the name of the variable being declared

Definition at line 24 of file name_vis_def.hpp.

§ operator()() [5/14]

std::string stan::lang::name_vis::operator() ( const row_vector_var_decl x) const

Return the name of the variable.

Parameters
xvariable declaration
Returns
the name of the variable being declared

Definition at line 28 of file name_vis_def.hpp.

§ operator()() [6/14]

std::string stan::lang::name_vis::operator() ( const matrix_var_decl x) const

Return the name of the variable.

Parameters
xvariable declaration
Returns
the name of the variable being declared

Definition at line 32 of file name_vis_def.hpp.

§ operator()() [7/14]

std::string stan::lang::name_vis::operator() ( const simplex_var_decl x) const

Return the name of the variable.

Parameters
xvariable declaration
Returns
the name of the variable being declared

Definition at line 40 of file name_vis_def.hpp.

§ operator()() [8/14]

std::string stan::lang::name_vis::operator() ( const unit_vector_var_decl x) const

Return the name of the variable.

Parameters
xvariable declaration
Returns
the name of the variable being declared

Definition at line 36 of file name_vis_def.hpp.

§ operator()() [9/14]

std::string stan::lang::name_vis::operator() ( const ordered_var_decl x) const

Return the name of the variable.

Parameters
xvariable declaration
Returns
the name of the variable being declared

Definition at line 44 of file name_vis_def.hpp.

§ operator()() [10/14]

std::string stan::lang::name_vis::operator() ( const positive_ordered_var_decl x) const

Return the name of the variable.

Parameters
xvariable declaration
Returns
the name of the variable being declared

Definition at line 48 of file name_vis_def.hpp.

§ operator()() [11/14]

std::string stan::lang::name_vis::operator() ( const cholesky_factor_var_decl x) const

Return the name of the variable.

Parameters
xvariable declaration
Returns
the name of the variable being declared

Definition at line 52 of file name_vis_def.hpp.

§ operator()() [12/14]

std::string stan::lang::name_vis::operator() ( const cholesky_corr_var_decl x) const

Return the name of the variable.

Parameters
xvariable declaration
Returns
the name of the variable being declared

Definition at line 56 of file name_vis_def.hpp.

§ operator()() [13/14]

std::string stan::lang::name_vis::operator() ( const cov_matrix_var_decl x) const

Return the name of the variable.

Parameters
xvariable declaration
Returns
the name of the variable being declared

Definition at line 60 of file name_vis_def.hpp.

§ operator()() [14/14]

std::string stan::lang::name_vis::operator() ( const corr_matrix_var_decl x) const

Return the name of the variable.

Parameters
xvariable declaration
Returns
the name of the variable being declared

Definition at line 64 of file name_vis_def.hpp.


The documentation for this struct was generated from the following files:

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