Include file:
#include "mcrl2/pbes/substitutions.h
mcrl2::pbes_system::
propositional_variable_substitution
¶Substitution function for propositional variables.
Model of Substitution.
mcrl2::pbes_system::propositional_variable_substitution::
const_iterator
¶typedef for map_type::const_iterator
mcrl2::pbes_system::propositional_variable_substitution::
expression_type
¶typedef for pbes_expression
type used to represent expressions
mcrl2::pbes_system::propositional_variable_substitution::
iterator
¶typedef for map_type::iterator
mcrl2::pbes_system::propositional_variable_substitution::
map_type
¶typedef for std::map< core::identifier_string, std::pair< pbes_expression, data::variable_list > >
mcrl2::pbes_system::propositional_variable_substitution::
variable_type
¶typedef for propositional_variable_instantiation
type used to represent variables
mcrl2::pbes_system::propositional_variable_substitution::
m_map
¶begin
()Returns an iterator pointing to the beginning of the sequence of assignments.
begin
() constReturns an iterator pointing to the beginning of the sequence of assignments.
empty
() constReturns true if the sequence of assignments is empty.
end
()Returns an iterator pointing past the end of the sequence of assignments.
end
() constReturns an iterator pointing past the end of the sequence of assignments.
erase
(const propositional_variable &v)¶Removes the substitution to the propositional variable v.
find
(const variable_type &v)Returns an iterator that references the expression associated with v or is equal to m_map.end()
find
(variable_type const &v) constReturns an iterator that references the expression associated with v or is equal to m_map.end()
operator()
(const variable_type &v) constApply this substitution to a single variable expression.
Parameters:
Returns: expression equivalent to s(e), or a reference to such an expression.
operator[]
(const propositional_variable &v)¶Update substitution for a single variable.
Parameters:
template<typenameE,typenameV>voidexample(Vconst&v,Econst&e){substitution<E,V>s;//substitutionstd::cout<<s(x)<<std::endl;//printsxs[v]=e;std::cout<<s(x)<<std::endl;//printse}
Returns: expression assignment for variable v, effect
propositional_variable_substitution
() = default¶propositional_variable_substitution
(const map_type &other)¶propositional_variable_substitution
(const propositional_variable &X, const pbes_expression &phi)¶Constructor. Initializes the substitution with the assignment X := phi.