![]() |
Stan
2.14.0
probability, sampling & optimization
|
#include <var_occurs_vis.hpp>
Public Member Functions | |
var_occurs_vis (const variable &e) | |
Construct a visitor to detect whether the specified variable occurs in a statement. More... | |
bool | operator() (const nil &e) const |
Return true if the variable occurs in the specified expression. More... | |
bool | operator() (const int_literal &e) const |
Return true if the variable occurs in the specified expression. More... | |
bool | operator() (const double_literal &e) const |
Return true if the variable occurs in the specified expression. More... | |
bool | operator() (const array_expr &e) const |
Return true if the variable occurs in the specified expression. More... | |
bool | operator() (const variable &e) const |
Return true if the variable occurs in the specified expression. More... | |
bool | operator() (const fun &e) const |
Return true if the variable occurs in the specified expression. More... | |
bool | operator() (const integrate_ode &e) const |
Return true if the variable occurs in the specified expression. More... | |
bool | operator() (const integrate_ode_control &e) const |
Return true if the variable occurs in the specified expression. More... | |
bool | operator() (const index_op &e) const |
Return true if the variable occurs in the specified expression. More... | |
bool | operator() (const index_op_sliced &e) const |
Return true if the variable occurs in the specified expression. More... | |
bool | operator() (const conditional_op &e) const |
Return true if the variable occurs in the specified expression. More... | |
bool | operator() (const binary_op &e) const |
Return true if the variable occurs in the specified expression. More... | |
bool | operator() (const unary_op &e) const |
Return true if the variable occurs in the specified expression. More... | |
Public Attributes | |
const std::string | var_name_ |
The name of the variable for which to search. More... | |
Definition at line 24 of file var_occurs_vis.hpp.
|
explicit |
Construct a visitor to detect whether the specified variable occurs in a statement.
e | variable to detect |
Definition at line 9 of file var_occurs_vis_def.hpp.
bool stan::lang::var_occurs_vis::operator() | ( | const nil & | e | ) | const |
Return true if the variable occurs in the specified expression.
[in] | e | expression |
Definition at line 13 of file var_occurs_vis_def.hpp.
bool stan::lang::var_occurs_vis::operator() | ( | const int_literal & | e | ) | const |
Return true if the variable occurs in the specified expression.
[in] | e | expression |
Definition at line 17 of file var_occurs_vis_def.hpp.
bool stan::lang::var_occurs_vis::operator() | ( | const double_literal & | e | ) | const |
Return true if the variable occurs in the specified expression.
[in] | e | expression |
Definition at line 21 of file var_occurs_vis_def.hpp.
bool stan::lang::var_occurs_vis::operator() | ( | const array_expr & | e | ) | const |
Return true if the variable occurs in the specified expression.
[in] | e | expression |
Definition at line 25 of file var_occurs_vis_def.hpp.
bool stan::lang::var_occurs_vis::operator() | ( | const variable & | e | ) | const |
Return true if the variable occurs in the specified expression.
[in] | e | expression |
Definition at line 29 of file var_occurs_vis_def.hpp.
bool stan::lang::var_occurs_vis::operator() | ( | const fun & | e | ) | const |
Return true if the variable occurs in the specified expression.
[in] | e | expression |
Definition at line 33 of file var_occurs_vis_def.hpp.
bool stan::lang::var_occurs_vis::operator() | ( | const integrate_ode & | e | ) | const |
Return true if the variable occurs in the specified expression.
[in] | e | expression |
Definition at line 40 of file var_occurs_vis_def.hpp.
bool stan::lang::var_occurs_vis::operator() | ( | const integrate_ode_control & | e | ) | const |
Return true if the variable occurs in the specified expression.
[in] | e | expression |
Definition at line 44 of file var_occurs_vis_def.hpp.
bool stan::lang::var_occurs_vis::operator() | ( | const index_op & | e | ) | const |
Return true if the variable occurs in the specified expression.
[in] | e | expression |
Definition at line 48 of file var_occurs_vis_def.hpp.
bool stan::lang::var_occurs_vis::operator() | ( | const index_op_sliced & | e | ) | const |
Return true if the variable occurs in the specified expression.
[in] | e | expression |
Definition at line 53 of file var_occurs_vis_def.hpp.
bool stan::lang::var_occurs_vis::operator() | ( | const conditional_op & | e | ) | const |
Return true if the variable occurs in the specified expression.
[in] | e | expression |
Definition at line 57 of file var_occurs_vis_def.hpp.
bool stan::lang::var_occurs_vis::operator() | ( | const binary_op & | e | ) | const |
Return true if the variable occurs in the specified expression.
[in] | e | expression |
Definition at line 63 of file var_occurs_vis_def.hpp.
bool stan::lang::var_occurs_vis::operator() | ( | const unary_op & | e | ) | const |
Return true if the variable occurs in the specified expression.
[in] | e | expression |
Definition at line 68 of file var_occurs_vis_def.hpp.
const std::string stan::lang::var_occurs_vis::var_name_ |
The name of the variable for which to search.
Definition at line 157 of file var_occurs_vis.hpp.