![]() |
Stan
2.14.0
probability, sampling & optimization
|
Visitor to detect if an expression contains a non-data variable. More...
#include <has_var_vis.hpp>
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_map & | var_map_ |
Reference to the global variable declaration mapping. More... | |
Visitor to detect if an expression contains a non-data variable.
Definition at line 28 of file has_var_vis.hpp.
|
explicit |
Construct a non-data variable detection visitor.
[in] | var_map | global variable declaration mapping |
Definition at line 9 of file has_var_vis_def.hpp.
bool stan::lang::has_var_vis::operator() | ( | const nil & | e | ) | const |
Return true if the specified expression contains a non-data variable.
e | expression |
Definition at line 13 of file has_var_vis_def.hpp.
bool stan::lang::has_var_vis::operator() | ( | const int_literal & | e | ) | const |
Return true if the specified expression contains a non-data variable.
e | expression |
Definition at line 17 of file has_var_vis_def.hpp.
bool stan::lang::has_var_vis::operator() | ( | const double_literal & | e | ) | const |
Return true if the specified expression contains a non-data variable.
e | expression |
Definition at line 21 of file has_var_vis_def.hpp.
bool stan::lang::has_var_vis::operator() | ( | const array_expr & | e | ) | const |
Return true if the specified expression contains a non-data variable.
e | expression |
Definition at line 25 of file has_var_vis_def.hpp.
bool stan::lang::has_var_vis::operator() | ( | const variable & | e | ) | const |
Return true if the specified expression contains a non-data variable.
e | expression |
Definition at line 32 of file has_var_vis_def.hpp.
bool stan::lang::has_var_vis::operator() | ( | const integrate_ode & | e | ) | const |
Return true if the specified expression contains a non-data variable.
e | expression |
Definition at line 46 of file has_var_vis_def.hpp.
bool stan::lang::has_var_vis::operator() | ( | const integrate_ode_control & | e | ) | const |
Return true if the specified expression contains a non-data variable.
e | expression |
Definition at line 52 of file has_var_vis_def.hpp.
bool stan::lang::has_var_vis::operator() | ( | const fun & | e | ) | const |
Return true if the specified expression contains a non-data variable.
e | expression |
Definition at line 39 of file has_var_vis_def.hpp.
bool stan::lang::has_var_vis::operator() | ( | const index_op & | e | ) | const |
Return true if the specified expression contains a non-data variable.
e | expression |
Definition at line 58 of file has_var_vis_def.hpp.
bool stan::lang::has_var_vis::operator() | ( | const index_op_sliced & | e | ) | const |
Return true if the specified expression contains a non-data variable.
e | expression |
Definition at line 62 of file has_var_vis_def.hpp.
bool stan::lang::has_var_vis::operator() | ( | const conditional_op & | e | ) | const |
Return true if the specified expression contains a non-data variable.
e | expression |
Definition at line 66 of file has_var_vis_def.hpp.
bool stan::lang::has_var_vis::operator() | ( | const binary_op & | e | ) | const |
Return true if the specified expression contains a non-data variable.
e | expression |
Definition at line 72 of file has_var_vis_def.hpp.
bool stan::lang::has_var_vis::operator() | ( | const unary_op & | e | ) | const |
Return true if the specified expression contains a non-data variable.
e | expression |
Definition at line 77 of file has_var_vis_def.hpp.
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.