![]() |
Stan
2.14.0
probability, sampling & optimization
|
Visitor to determine if an expression contains a variable that is not declared as a parameter. More...
#include <has_non_param_var_vis.hpp>
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_map & | var_map_ |
Reference to global variable declaration map. More... | |
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.
|
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.
[in] | var_map |
Definition at line 41 of file has_non_param_var_vis_def.hpp.
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.
[in] | e | expression |
Definition at line 45 of file has_non_param_var_vis_def.hpp.
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.
[in] | e | expression |
Definition at line 49 of file has_non_param_var_vis_def.hpp.
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.
[in] | e | expression |
Definition at line 53 of file has_non_param_var_vis_def.hpp.
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.
[in] | e | expression |
Definition at line 57 of file has_non_param_var_vis_def.hpp.
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.
[in] | e | expression |
Definition at line 64 of file has_non_param_var_vis_def.hpp.
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.
[in] | e | expression |
Definition at line 70 of file has_non_param_var_vis_def.hpp.
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.
[in] | e | expression |
Definition at line 76 of file has_non_param_var_vis_def.hpp.
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.
[in] | e | expression |
Definition at line 83 of file has_non_param_var_vis_def.hpp.
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.
[in] | e | expression |
Definition at line 97 of file has_non_param_var_vis_def.hpp.
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.
[in] | e | expression |
Definition at line 101 of file has_non_param_var_vis_def.hpp.
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.
[in] | e | expression |
Definition at line 105 of file has_non_param_var_vis_def.hpp.
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.
[in] | e | expression |
Definition at line 113 of file has_non_param_var_vis_def.hpp.
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.
[in] | e | expression |
Definition at line 131 of file has_non_param_var_vis_def.hpp.
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.