mCRL2
|
Component for selecting a subset of equations that are actually used in an encompassing specification. More...
#include <selection.h>
Public Member Functions | |
bool | operator() (const data::function_symbol &f) const |
Check whether the symbol is used. | |
bool | operator() (const data_equation &e) const |
Check whether data equation relates to used symbols, and therefore is important. | |
void | add_function_symbols (const data_expression &t) |
used_data_equation_selector () | |
default constructor | |
template<typename Range > | |
used_data_equation_selector (data_specification const &data_spec, Range const &context) | |
context is a range of function symbols | |
used_data_equation_selector (const data_specification &specification, const std::set< function_symbol > &function_symbols, const std::set< data::variable > &global_variables, const bool do_not_remove_function_symbols) | |
used_data_equation_selector (const data_specification &) | |
select all equations | |
Protected Member Functions | |
void | add_data_specification_symbols (const data_specification &specification) |
Private Member Functions | |
void | add_symbol (const function_symbol &f) |
template<typename Range > | |
void | add_symbols (Range const &r) |
Private Attributes | |
std::set< function_symbol > | m_used_symbols |
bool | add_all |
Component for selecting a subset of equations that are actually used in an encompassing specification.
This component can be used with the constructor of data::rewriter derived classes to select a smaller set of equations that are used as rewrite rules. This limited set of rewrite rules should be enough for the purpose of rewriting objects that occur in the encompassing specification (the context).
Definition at line 36 of file selection.h.
|
inline |
default constructor
Definition at line 152 of file selection.h.
|
inline |
context is a range of function symbols
Definition at line 158 of file selection.h.
|
inline |
Definition at line 165 of file selection.h.
|
inline |
select all equations
Definition at line 182 of file selection.h.
|
inlineprotected |
Definition at line 56 of file selection.h.
|
inline |
Definition at line 146 of file selection.h.
|
inlineprivate |
Definition at line 44 of file selection.h.
|
inlineprivate |
Definition at line 50 of file selection.h.
|
inline |
Check whether the symbol is used.
Definition at line 122 of file selection.h.
|
inline |
Check whether data equation relates to used symbols, and therefore is important.
Definition at line 132 of file selection.h.
|
private |
Definition at line 42 of file selection.h.
|
private |
Definition at line 40 of file selection.h.