Substitution function for propositional variables.
More...
#include <substitutions.h>
|
| class | assignment |
| | Wrapper class for internal storage and substitution updates using operator() More...
|
| |
Substitution function for propositional variables.
Model of Substitution.
Definition at line 33 of file substitutions.h.
◆ const_iterator
◆ expression_type
◆ iterator
◆ map_type
◆ variable_type
◆ propositional_variable_substitution() [1/3]
| mcrl2::pbes_system::propositional_variable_substitution::propositional_variable_substitution |
( |
| ) |
|
|
default |
◆ propositional_variable_substitution() [2/3]
| mcrl2::pbes_system::propositional_variable_substitution::propositional_variable_substitution |
( |
const map_type & |
other | ) |
|
|
inline |
◆ propositional_variable_substitution() [3/3]
Constructor. Initializes the substitution with the assignment X := phi.
Definition at line 146 of file substitutions.h.
◆ begin() [1/2]
| iterator mcrl2::pbes_system::propositional_variable_substitution::begin |
( |
| ) |
|
|
inline |
Returns an iterator pointing to the beginning of the sequence of assignments.
Definition at line 164 of file substitutions.h.
◆ begin() [2/2]
| const_iterator mcrl2::pbes_system::propositional_variable_substitution::begin |
( |
| ) |
const |
|
inline |
Returns an iterator pointing to the beginning of the sequence of assignments.
Definition at line 152 of file substitutions.h.
◆ empty()
| bool mcrl2::pbes_system::propositional_variable_substitution::empty |
( |
| ) |
const |
|
inline |
Returns true if the sequence of assignments is empty.
Definition at line 194 of file substitutions.h.
◆ end() [1/2]
| iterator mcrl2::pbes_system::propositional_variable_substitution::end |
( |
| ) |
|
|
inline |
Returns an iterator pointing past the end of the sequence of assignments.
Definition at line 170 of file substitutions.h.
◆ end() [2/2]
| const_iterator mcrl2::pbes_system::propositional_variable_substitution::end |
( |
| ) |
const |
|
inline |
Returns an iterator pointing past the end of the sequence of assignments.
Definition at line 158 of file substitutions.h.
◆ erase()
| map_type::size_type mcrl2::pbes_system::propositional_variable_substitution::erase |
( |
const propositional_variable & |
v | ) |
|
|
inline |
Removes the substitution to the propositional variable v.
Definition at line 182 of file substitutions.h.
◆ find() [1/2]
Returns an iterator that references the expression associated with v or is equal to m_map.end()
Definition at line 176 of file substitutions.h.
◆ find() [2/2]
Returns an iterator that references the expression associated with v or is equal to m_map.end()
Definition at line 188 of file substitutions.h.
◆ operator()()
Apply this substitution to a single variable expression.
- Parameters
-
| [in] | v | The variable for which to give the associated expression. |
- Returns
- expression equivalent to s(e), or a reference to such an expression.
Definition at line 55 of file substitutions.h.
◆ operator[]()
Update substitution for a single variable.
- Parameters
-
| [in] | v | the variable for which to update the value |
template< typename E, typename V >
void example(V const& v, E const& e) {
substitution< E, V > s;
std::cout << s(x) << std::endl;
s[v] = e;
std::cout << s(x) << std::endl;
}
- Returns
- expression assignment for variable v, effect
Definition at line 140 of file substitutions.h.
◆ m_map
| map_type mcrl2::pbes_system::propositional_variable_substitution::m_map |
|
protected |
The documentation for this class was generated from the following file: