mCRL2
Loading...
Searching...
No Matches
mcrl2::pbes_system::detail::pbes_property_map Class Reference

Stores the following properties of a linear process specification: More...

#include <pbes_property_map.h>

Inheritance diagram for mcrl2::pbes_system::detail::pbes_property_map:
mcrl2::data::detail::data_property_map< pbes_property_map >

Public Member Functions

 pbes_property_map (const std::string &text)
 Constructor. The strings may appear in a random order, and not all of them need to be present.
 
 pbes_property_map (const pbes &p)
 Constructor Initializes the pbes_property_map with a linear process specification.
 
std::string compare (const pbes_property_map &other) const
 
- Public Member Functions inherited from mcrl2::data::detail::data_property_map< pbes_property_map >
std::string compare (const data_property_map &other) const
 Compares this property map with another property map. The function compare_property must be defined properly for all available properties.
 
 data_property_map (const std::string &text)
 The strings may appear in a random order, and not all of them need to be present.
 
std::string to_string () const
 Returns a string representation of the properties.
 
const std::map< std::string, std::string > & data () const
 Returns the stored properties.
 
std::string operator[] (const std::string &key) const
 Returns the value corresponding to key. Throws an exception if the key is not found.
 

Protected Types

using super = data::detail::data_property_map< pbes_property_map >
 

Protected Member Functions

std::string print (const propositional_variable &v) const
 
std::string compare_property (const std::string &property, const std::string &x, const std::string &y) const
 
std::pair< std::size_t, std::size_t > compute_equation_counts (const pbes &p) const
 Computes the number of mu and nu equations and returns them as a pair.
 
std::size_t compute_block_nesting_depth (const pbes &p) const
 
- Protected Member Functions inherited from mcrl2::data::detail::data_property_map< pbes_property_map >
std::string print (std::size_t n) const
 
std::string print (std::string s) const
 
std::string print (const core::identifier_string &s) const
 
std::string print (const data::variable &v) const
 
std::string print (const Container &v, typename atermpp::enable_if_container< Container >::type *=nullptr) const
 
std::string print (const Container &v, bool print_separators, typename atermpp::enable_if_container< Container >::type *=nullptr) const
 
unsigned int parse_unsigned_int (std::string const &text) const
 
std::set< std::string > parse_set_string (std::string const &text) const
 
std::set< std::multiset< std::string > > parse_set_multiset_string (std::string const &text) const
 
std::string compare (const std::string &property, unsigned int x, unsigned int y) const
 Compares two integers, and returns a message if they are different. If if they are equal the empty string is returned.
 
std::string compare (const std::string &property, const std::set< T > &x, const std::set< T > &y) const
 Compares two sets and returns a string with the differences encountered. Elements present in the first one but not in the second are printed with a '+' in front of it, elements present in the seconde but not in the first one with a '-' in front of it. A value x of the type T is printed using print(x), so this operation must be defined. If no differences are found the empty string is returned.
 
std::string compare_property (const std::string &property, const std::string &, const std::string &) const
 Compares two values x and y of a given property. This function should be redefined in derived classes.
 
unsigned int max_key_length () const
 Returns the maximum length of the property names.
 
std::string align (const std::string &s, unsigned int n) const
 
std::set< core::identifier_string > names (const Container &v) const
 Collects the names of the elements of the container. The name of element x is retrieved by x.name().
 
 data_property_map ()=default
 Default constructor for derived types.
 
void parse_text (const std::string &text)
 Initializes the property map with text containing lines in KEY = VALUE format.
 

Friends

class data::detail::data_property_map< pbes_property_map >
 

Additional Inherited Members

- Static Protected Member Functions inherited from mcrl2::data::detail::data_property_map< pbes_property_map >
static std::string add_separators (std::string const &c)
 Add start/end separators for non-set container types.
 
static std::string add_separators (std::string const &c)
 Add start/end separators for set container types.
 
- Protected Attributes inherited from mcrl2::data::detail::data_property_map< pbes_property_map >
std::map< std::string, std::string > m_data
 Contains a normalized string representation of the properties.
 

Detailed Description

Stores the following properties of a linear process specification:

property description format
equation_count The number of equation NUMBER
mu_equation_count The number of mu equations NUMBER
nu_equation_count The number of nu equations NUMBER
block_nesting_depth The number of mu/nu alternations NUMBER
declared_free_variables The declared free variables PARAMLIST
declared_free_variable_namesThe names of the declared free variablesNAME, ..., NAME
declared_variable_count The number of declared free variables NUMBER
used_free_variables The used free variables PARAMLIST
used_free_variables_names The names of the used free variables NAME, ..., NAME
used_free_variable_count The number of used free variables NUMBER
binding_variables The binding variables NAME(PARAMLIST), ..., NAME(PARAMLIST)
binding_variable_names The names of the binding variables NAME, ..., NAME
occurring_variables The occurring variables NUMBER
occurring_variable_names The names of the occurring variables NAME(PARAMLIST), ..., NAME(PARAMLIST)

where PARAMLIST is defined as NAME:SORT, ... ,NAME:SORT.

Definition at line 42 of file pbes_property_map.h.

Member Typedef Documentation

◆ super

Constructor & Destructor Documentation

◆ pbes_property_map() [1/2]

mcrl2::pbes_system::detail::pbes_property_map::pbes_property_map ( const std::string &  text)
inline

Constructor. The strings may appear in a random order, and not all of them need to be present.

Definition at line 167 of file pbes_property_map.h.

◆ pbes_property_map() [2/2]

mcrl2::pbes_system::detail::pbes_property_map::pbes_property_map ( const pbes &  p)
inlineexplicit

Constructor Initializes the pbes_property_map with a linear process specification.

Definition at line 173 of file pbes_property_map.h.

Member Function Documentation

◆ compare()

std::string mcrl2::pbes_system::detail::pbes_property_map::compare ( const pbes_property_map &  other) const
inline

Definition at line 201 of file pbes_property_map.h.

◆ compare_property()

std::string mcrl2::pbes_system::detail::pbes_property_map::compare_property ( const std::string &  property,
const std::string &  x,
const std::string &  y 
) const
inlineprotected

Definition at line 61 of file pbes_property_map.h.

◆ compute_block_nesting_depth()

std::size_t mcrl2::pbes_system::detail::pbes_property_map::compute_block_nesting_depth ( const pbes &  p) const
inlineprotected

Definition at line 145 of file pbes_property_map.h.

◆ compute_equation_counts()

std::pair< std::size_t, std::size_t > mcrl2::pbes_system::detail::pbes_property_map::compute_equation_counts ( const pbes &  p) const
inlineprotected

Computes the number of mu and nu equations and returns them as a pair.

Definition at line 126 of file pbes_property_map.h.

◆ print()

std::string mcrl2::pbes_system::detail::pbes_property_map::print ( const propositional_variable &  v) const
inlineprotected

Definition at line 53 of file pbes_property_map.h.

Friends And Related Symbol Documentation

◆ data::detail::data_property_map< pbes_property_map >

Definition at line 1 of file pbes_property_map.h.


The documentation for this class was generated from the following file: