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

Visitor to detect if an expression contains a non-data variable. More...

#include <has_var_vis.hpp>

Inheritance diagram for stan::lang::has_var_vis:

Public Member Functions

 has_var_vis (const variable_map &var_map)
 Construct a non-data variable detection visitor. More...
 
bool operator() (const nil &e) const
 Return true if the specified expression contains a non-data variable. More...
 
bool operator() (const int_literal &e) const
 Return true if the specified expression contains a non-data variable. More...
 
bool operator() (const double_literal &e) const
 Return true if the specified expression contains a non-data variable. More...
 
bool operator() (const array_expr &e) const
 Return true if the specified expression contains a non-data variable. More...
 
bool operator() (const variable &e) const
 Return true if the specified expression contains a non-data variable. More...
 
bool operator() (const integrate_ode &e) const
 Return true if the specified expression contains a non-data variable. More...
 
bool operator() (const integrate_ode_control &e) const
 Return true if the specified expression contains a non-data variable. More...
 
bool operator() (const fun &e) const
 Return true if the specified expression contains a non-data variable. More...
 
bool operator() (const index_op &e) const
 Return true if the specified expression contains a non-data variable. More...
 
bool operator() (const index_op_sliced &e) const
 Return true if the specified expression contains a non-data variable. More...
 
bool operator() (const conditional_op &e) const
 Return true if the specified expression contains a non-data variable. More...
 
bool operator() (const binary_op &e) const
 Return true if the specified expression contains a non-data variable. More...
 
bool operator() (const unary_op &e) const
 Return true if the specified expression contains a non-data variable. More...
 

Public Attributes

const variable_mapvar_map_
 Reference to the global variable declaration mapping. More...
 

Detailed Description

Visitor to detect if an expression contains a non-data variable.

Definition at line 28 of file has_var_vis.hpp.

Constructor & Destructor Documentation

§ has_var_vis()

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

Construct a non-data variable detection visitor.

Parameters
[in]var_mapglobal variable declaration mapping

Definition at line 9 of file has_var_vis_def.hpp.

Member Function Documentation

§ operator()() [1/13]

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

Return true if the specified expression contains a non-data variable.

Parameters
eexpression
Returns
true if expression contains a non-data variable

Definition at line 13 of file has_var_vis_def.hpp.

§ operator()() [2/13]

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

Return true if the specified expression contains a non-data variable.

Parameters
eexpression
Returns
true if expression contains a non-data variable

Definition at line 17 of file has_var_vis_def.hpp.

§ operator()() [3/13]

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

Return true if the specified expression contains a non-data variable.

Parameters
eexpression
Returns
true if expression contains a non-data variable

Definition at line 21 of file has_var_vis_def.hpp.

§ operator()() [4/13]

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

Return true if the specified expression contains a non-data variable.

Parameters
eexpression
Returns
true if expression contains a non-data variable

Definition at line 25 of file has_var_vis_def.hpp.

§ operator()() [5/13]

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

Return true if the specified expression contains a non-data variable.

Parameters
eexpression
Returns
true if expression contains a non-data variable

Definition at line 32 of file has_var_vis_def.hpp.

§ operator()() [6/13]

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

Return true if the specified expression contains a non-data variable.

Parameters
eexpression
Returns
true if expression contains a non-data variable

Definition at line 46 of file has_var_vis_def.hpp.

§ operator()() [7/13]

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

Return true if the specified expression contains a non-data variable.

Parameters
eexpression
Returns
true if expression contains a non-data variable

Definition at line 52 of file has_var_vis_def.hpp.

§ operator()() [8/13]

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

Return true if the specified expression contains a non-data variable.

Parameters
eexpression
Returns
true if expression contains a non-data variable

Definition at line 39 of file has_var_vis_def.hpp.

§ operator()() [9/13]

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

Return true if the specified expression contains a non-data variable.

Parameters
eexpression
Returns
true if expression contains a non-data variable

Definition at line 58 of file has_var_vis_def.hpp.

§ operator()() [10/13]

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

Return true if the specified expression contains a non-data variable.

Parameters
eexpression
Returns
true if expression contains a non-data variable

Definition at line 62 of file has_var_vis_def.hpp.

§ operator()() [11/13]

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

Return true if the specified expression contains a non-data variable.

Parameters
eexpression
Returns
true if expression contains a non-data variable

Definition at line 66 of file has_var_vis_def.hpp.

§ operator()() [12/13]

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

Return true if the specified expression contains a non-data variable.

Parameters
eexpression
Returns
true if expression contains a non-data variable

Definition at line 72 of file has_var_vis_def.hpp.

§ operator()() [13/13]

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

Return true if the specified expression contains a non-data variable.

Parameters
eexpression
Returns
true if expression contains a non-data variable

Definition at line 77 of file has_var_vis_def.hpp.

Member Data Documentation

§ var_map_

const variable_map& stan::lang::has_var_vis::var_map_

Reference to the global variable declaration mapping.

Definition at line 155 of file has_var_vis.hpp.


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

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