Include file:
#include "mcrl2/lps/ltsmin.h
mcrl2::lps::
state_data_type
¶Models the mapping of mCRL2 state values to integers.
mcrl2::lps::state_data_type::
m_name
¶mcrl2::lps::state_data_type::
m_sort
¶deserialize
(const std::string &s) overrideDeserializes a string to a data value, and returns the corresponding index. If the value is not in the mapping, it will be added.
Returns: The index of the data value. exception * <std::runtime_error> { if deserialization failed }
generate_values
(std::size_t max_size) const overrideGenerates possible values of the data type (at most max_size).
name
() const overrideReturns the name of the data type.
parse
(const std::string &s) overrideParses a string to a data value, and returns the corresponding index. If the value is not in the mapping, it will be added.
Returns: The index of the data value. exception * <std::runtime_error> { if parsing failed }
print
(int i) const overrideReturns a human readable representation of the value with index i. N.B. It is not guaranteed that parse(print(i)) == i.
Pre: i is a valid index
serialize
(int i) const overrideSerializes the i-th value of the data type to a binary string. It is guaranteed that serialize(deserialize(i)) == i.
Pre: i is a valid index