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

Visitor to determine if an expression contains a variable that is not declared as a parameter. More...

#include <has_non_param_var_vis.hpp>

Inheritance diagram for stan::lang::has_non_param_var_vis:

Public Member Functions

 has_non_param_var_vis (const variable_map &var_map)
 Construct the visitor with the specified global variable declaration mapping. More...
 
bool operator() (const nil &e) const
 Return true if the specified expression contains a variable not declared as a parameter. More...
 
bool operator() (const int_literal &e) const
 Return true if the specified expression contains a variable not declared as a parameter. More...
 
bool operator() (const double_literal &e) const
 Return true if the specified expression contains a variable not declared as a parameter. More...
 
bool operator() (const array_expr &e) const
 Return true if the specified expression contains a variable not declared as a parameter. More...
 
bool operator() (const variable &e) const
 Return true if the specified expression contains a variable not declared as a parameter. More...
 
bool operator() (const integrate_ode &e) const
 Return true if the specified expression contains a variable not declared as a parameter. More...
 
bool operator() (const integrate_ode_control &e) const
 Return true if the specified expression contains a variable not declared as a parameter. More...
 
bool operator() (const fun &e) const
 Return true if the specified expression contains a variable not declared as a parameter. More...
 
bool operator() (const index_op &e) const
 Return true if the specified expression contains a variable not declared as a parameter. More...
 
bool operator() (const index_op_sliced &e) const
 Return true if the specified expression contains a variable not declared as a parameter. More...
 
bool operator() (const conditional_op &e) const
 Return true if the specified expression contains a variable not declared as a parameter. More...
 
bool operator() (const binary_op &e) const
 Return true if the specified expression contains a variable not declared as a parameter. More...
 
bool operator() (const unary_op &e) const
 Return true if the specified expression contains a variable not declared as a parameter. More...
 

Public Attributes

const variable_mapvar_map_
 Reference to global variable declaration map. More...
 

Detailed Description

Visitor to determine if an expression contains a variable that is not declared as a parameter.

Definition at line 14 of file has_non_param_var_vis.hpp.

Constructor & Destructor Documentation

§ has_non_param_var_vis()

stan::lang::has_non_param_var_vis::has_non_param_var_vis ( const variable_map var_map)
explicit

Construct the visitor with the specified global variable declaration mapping.

This class will hold a reference to the specified variable map, but will not alter it.

Parameters
[in]var_map

Definition at line 41 of file has_non_param_var_vis_def.hpp.

Member Function Documentation

§ operator()() [1/13]

bool stan::lang::has_non_param_var_vis::operator() ( const nil e) const

Return true if the specified expression contains a variable not declared as a parameter.

Parameters
[in]eexpression
Returns
true if contains a variable not declared as a parameter

Definition at line 45 of file has_non_param_var_vis_def.hpp.

§ operator()() [2/13]

bool stan::lang::has_non_param_var_vis::operator() ( const int_literal e) const

Return true if the specified expression contains a variable not declared as a parameter.

Parameters
[in]eexpression
Returns
true if contains a variable not declared as a parameter

Definition at line 49 of file has_non_param_var_vis_def.hpp.

§ operator()() [3/13]

bool stan::lang::has_non_param_var_vis::operator() ( const double_literal e) const

Return true if the specified expression contains a variable not declared as a parameter.

Parameters
[in]eexpression
Returns
true if contains a variable not declared as a parameter

Definition at line 53 of file has_non_param_var_vis_def.hpp.

§ operator()() [4/13]

bool stan::lang::has_non_param_var_vis::operator() ( const array_expr e) const

Return true if the specified expression contains a variable not declared as a parameter.

Parameters
[in]eexpression
Returns
true if contains a variable not declared as a parameter

Definition at line 57 of file has_non_param_var_vis_def.hpp.

§ operator()() [5/13]

bool stan::lang::has_non_param_var_vis::operator() ( const variable e) const

Return true if the specified expression contains a variable not declared as a parameter.

Parameters
[in]eexpression
Returns
true if contains a variable not declared as a parameter

Definition at line 64 of file has_non_param_var_vis_def.hpp.

§ operator()() [6/13]

bool stan::lang::has_non_param_var_vis::operator() ( const integrate_ode e) const

Return true if the specified expression contains a variable not declared as a parameter.

Parameters
[in]eexpression
Returns
true if contains a variable not declared as a parameter

Definition at line 70 of file has_non_param_var_vis_def.hpp.

§ operator()() [7/13]

bool stan::lang::has_non_param_var_vis::operator() ( const integrate_ode_control e) const

Return true if the specified expression contains a variable not declared as a parameter.

Parameters
[in]eexpression
Returns
true if contains a variable not declared as a parameter

Definition at line 76 of file has_non_param_var_vis_def.hpp.

§ operator()() [8/13]

bool stan::lang::has_non_param_var_vis::operator() ( const fun e) const

Return true if the specified expression contains a variable not declared as a parameter.

Parameters
[in]eexpression
Returns
true if contains a variable not declared as a parameter

Definition at line 83 of file has_non_param_var_vis_def.hpp.

§ operator()() [9/13]

bool stan::lang::has_non_param_var_vis::operator() ( const index_op e) const

Return true if the specified expression contains a variable not declared as a parameter.

Parameters
[in]eexpression
Returns
true if contains a variable not declared as a parameter

Definition at line 97 of file has_non_param_var_vis_def.hpp.

§ operator()() [10/13]

bool stan::lang::has_non_param_var_vis::operator() ( const index_op_sliced e) const

Return true if the specified expression contains a variable not declared as a parameter.

Parameters
[in]eexpression
Returns
true if contains a variable not declared as a parameter

Definition at line 101 of file has_non_param_var_vis_def.hpp.

§ operator()() [11/13]

bool stan::lang::has_non_param_var_vis::operator() ( const conditional_op e) const

Return true if the specified expression contains a variable not declared as a parameter.

Parameters
[in]eexpression
Returns
true if contains a variable not declared as a parameter

Definition at line 105 of file has_non_param_var_vis_def.hpp.

§ operator()() [12/13]

bool stan::lang::has_non_param_var_vis::operator() ( const binary_op e) const

Return true if the specified expression contains a variable not declared as a parameter.

Parameters
[in]eexpression
Returns
true if contains a variable not declared as a parameter

Definition at line 113 of file has_non_param_var_vis_def.hpp.

§ operator()() [13/13]

bool stan::lang::has_non_param_var_vis::operator() ( const unary_op e) const

Return true if the specified expression contains a variable not declared as a parameter.

Parameters
[in]eexpression
Returns
true if contains a variable not declared as a parameter

Definition at line 131 of file has_non_param_var_vis_def.hpp.

Member Data Documentation

§ var_map_

const variable_map& stan::lang::has_non_param_var_vis::var_map_

Reference to global variable declaration map.

Definition at line 144 of file has_non_param_var_vis.hpp.


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

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