mCRL2
|
Traverser that defines functions for maintaining bound variables. More...
#include <add_binding.h>
Public Types | |
typedef TraverserOrBuilder< Derived > | super |
typedef Variable | variable_type |
Public Member Functions | |
bool | is_bound (variable_type const &v) const |
Returns true if the variable v is bound. | |
const std::multiset< variable_type > & | bound_variables () const |
Returns the bound variables. | |
std::multiset< variable_type >::size_type | bind_count (const variable_type &v) |
Returns the bind count of the variable v. | |
Protected Member Functions | |
void | increase_bind_count (const variable_type &var) |
Add a variable to the multiset of bound variables. | |
template<typename Container > | |
void | increase_bind_count (const Container &variables, typename atermpp::enable_if_container< Container, variable_type >::type *=nullptr) |
Add a sequence of variables to the multiset of bound variables. | |
void | decrease_bind_count (const variable_type &var) |
Remove a variable from the multiset of bound variables. | |
template<typename Container > | |
void | decrease_bind_count (const Container &variables, typename atermpp::enable_if_container< Container, variable_type >::type *=nullptr) |
Remove a sequence of variables from the multiset of bound variables. | |
Protected Attributes | |
std::multiset< variable_type > | m_bound_variables |
Traverser that defines functions for maintaining bound variables.
Definition at line 25 of file add_binding.h.
typedef TraverserOrBuilder<Derived> mcrl2::core::add_binding< TraverserOrBuilder, Derived, Variable >::super |
Definition at line 28 of file add_binding.h.
typedef Variable mcrl2::core::add_binding< TraverserOrBuilder, Derived, Variable >::variable_type |
Definition at line 29 of file add_binding.h.
|
inline |
Returns the bind count of the variable v.
Definition at line 80 of file add_binding.h.
|
inline |
Returns the bound variables.
Definition at line 74 of file add_binding.h.
|
inlineprotected |
Remove a sequence of variables from the multiset of bound variables.
Definition at line 58 of file add_binding.h.
|
inlineprotected |
Remove a variable from the multiset of bound variables.
Definition at line 51 of file add_binding.h.
|
inlineprotected |
Add a sequence of variables to the multiset of bound variables.
Definition at line 42 of file add_binding.h.
|
inlineprotected |
Add a variable to the multiset of bound variables.
Definition at line 35 of file add_binding.h.
|
inline |
Returns true if the variable v is bound.
Definition at line 68 of file add_binding.h.
|
protected |
Definition at line 32 of file add_binding.h.