mCRL2
Loading...
Searching...
No Matches
mcrl2::lts::state_label_lts Class Reference

This class contains state labels for an labelled transition system in .lts format. More...

#include <lts_lts.h>

Inheritance diagram for mcrl2::lts::state_label_lts:
atermpp::term_list< lps::state > atermpp::aterm atermpp::unprotected_aterm

Public Types

typedef atermpp::term_list< lps::statesuper
 
- Public Types inherited from atermpp::term_list< lps::state >
typedef lps::state value_type
 The type of object, T stored in the term_list.
 
typedef lps::state * pointer
 Pointer to T.
 
typedef lps::state & reference
 Reference to T.
 
typedef const lps::state & const_reference
 Const reference to T.
 
typedef std::size_t size_type
 An unsigned integral type.
 
typedef ptrdiff_t difference_type
 A signed integral type.
 
typedef term_list_iterator< lps::state > iterator
 Iterator used to iterate through an term_list.
 
typedef term_list_iterator< lps::state > const_iterator
 Const iterator used to iterate through an term_list.
 
typedef reverse_term_list_iterator< lps::state > const_reverse_iterator
 Const iterator used to iterate through an term_list.
 

Public Member Functions

 state_label_lts ()
 Default constructor.
 
 state_label_lts (const state_label_lts &)=default
 Copy constructor.
 
state_label_ltsoperator= (const state_label_lts &)=default
 Copy assignment.
 
template<class CONTAINER >
 state_label_lts (const CONTAINER &l)
 Construct a single state label out of the elements in a container.
 
 state_label_lts (const lps::state &l)
 Construct a state label out of a balanced tree of data expressions, representing a state label.
 
 state_label_lts (const super &l)
 Construct a state label out of list of balanced trees of data expressions, representing a state label.
 
state_label_lts operator+ (const state_label_lts &l) const
 An operator to concatenate two state labels.
 
- Public Member Functions inherited from atermpp::term_list< lps::state >
 term_list () noexcept
 Default constructor. Creates an empty list.
 
 term_list (const aterm &t) noexcept
 Constructor from an aterm.
 
 term_list (const term_list< lps::state > &t) noexcept
 Copy constructor.
 
 term_list (term_list< lps::state > &&t) noexcept
 Move constructor.
 
 term_list (Iter first, Iter last, typename std::enable_if< std::is_base_of< std::bidirectional_iterator_tag, typename std::iterator_traits< Iter >::iterator_category >::value >::type *=nullptr)
 Creates a term_list with the elements from first to last.
 
 term_list (Iter first, Iter last, const ATermConverter &convert_to_aterm, typename std::enable_if< std::is_base_of< std::bidirectional_iterator_tag, typename std::iterator_traits< Iter >::iterator_category >::value >::type *=0)
 Creates a term_list with the elements from first to last converting the elements before inserting.
 
 term_list (Iter first, Iter last, const ATermConverter &convert_to_aterm, const ATermFilter &aterm_filter, typename std::enable_if< std::is_base_of< std::bidirectional_iterator_tag, typename std::iterator_traits< Iter >::iterator_category >::value >::type *=0)
 Creates a term_list with the elements from first to last, converting and filtering the list.
 
 term_list (Iter first, Iter last, typename std::enable_if< !std::is_base_of< std::bidirectional_iterator_tag, typename std::iterator_traits< Iter >::iterator_category >::value >::type *=nullptr)
 Creates a term_list from the elements from first to last.
 
 term_list (Iter first, Iter last, const ATermConverter &convert_to_aterm, typename std::enable_if< !std::is_base_of< std::bidirectional_iterator_tag, typename std::iterator_traits< Iter >::iterator_category >::value >::type *=nullptr)
 Creates a term_list from the elements from first to last converting the elements before inserting.
 
 term_list (Iter first, Iter last, const ATermConverter &convert_to_aterm, const ATermFilter &aterm_filter, typename std::enable_if< !std::is_base_of< std::random_access_iterator_tag, typename std::iterator_traits< Iter >::iterator_category >::value >::type *=nullptr)
 Creates a term_list from the elements from first to last converting and filtering the elements before inserting.
 
 term_list (std::initializer_list< lps::state > init)
 A constructor based on an initializer list.
 
term_listoperator= (const term_list &other) noexcept=default
 This class has user-declared copy constructor so declare copy and move assignment.
 
term_listoperator= (term_list &&other) noexcept=default
 
const term_list< lps::state > & tail () const
 Returns the tail of the list.
 
void pop_front ()
 Removes the first element of the list.
 
const lps::state & front () const
 Returns the first element of the list.
 
void push_front (const lps::state &el)
 Inserts a new element at the beginning of the current list.
 
void emplace_front (Args &&... arguments)
 Construct and insert a new element at the beginning of the current list.
 
size_type size () const
 Returns the size of the term_list.
 
bool empty () const
 Returns true if the list's size is 0.
 
const_iterator begin () const
 Returns a const_iterator pointing to the beginning of the term_list.
 
const_iterator end () const
 Returns a const_iterator pointing to the end of the term_list.
 
const_reverse_iterator rbegin () const
 Returns a const_reverse_iterator pointing to the end of the term_list.
 
const_reverse_iterator rend () const
 Returns a const_iterator pointing to the end of the term_list.
 
size_type max_size () const
 Returns the largest possible size of the term_list.
 
- Public Member Functions inherited from atermpp::aterm
 aterm () noexcept
 Default constructor.
 
 ~aterm () noexcept
 Standard destructor.
 
 aterm (const detail::_aterm *t) noexcept
 Constructor based on an internal term data structure. This is not for public use.
 
 aterm (const aterm &other) noexcept
 Copy constructor.
 
 aterm (aterm &&other) noexcept
 Move constructor.
 
atermoperator= (const aterm &other) noexcept
 Assignment operator.
 
atermassign (const aterm &other, detail::thread_aterm_pool &pool) noexcept
 Assignment operator, to be used if busy and forbidden flags are explicitly available.
 
template<bool CHECK_BUSY_FLAG = true>
atermunprotected_assign (const aterm &other) noexcept
 Assignment operator, to be used when the busy flags do not need to be set.
 
atermoperator= (aterm &&other) noexcept
 Move assignment operator.
 
- Public Member Functions inherited from atermpp::unprotected_aterm
 unprotected_aterm () noexcept
 Default constuctor.
 
 unprotected_aterm (const detail::_aterm *term) noexcept
 Constructor.
 
bool type_is_appl () const noexcept
 Dynamic check whether the term is an aterm_appl.
 
bool type_is_int () const noexcept
 Dynamic check whether the term is an aterm_int.
 
bool type_is_list () const noexcept
 Dynamic check whether the term is an aterm_list.
 
bool operator== (const unprotected_aterm &t) const
 Comparison operator.
 
bool operator!= (const unprotected_aterm &t) const
 Inequality operator on two unprotected aterms.
 
bool operator< (const unprotected_aterm &t) const
 Comparison operator for two unprotected aterms.
 
bool operator> (const unprotected_aterm &t) const
 Comparison operator for two unprotected aterms.
 
bool operator<= (const unprotected_aterm &t) const
 Comparison operator for two unprotected aterms.
 
bool operator>= (const unprotected_aterm &t) const
 Comparison operator for two unprotected aterms.
 
bool defined () const
 Returns true if this term is not equal to the term assigned by the default constructor of aterms, term_appl<T>'s and aterm_int.
 
void swap (unprotected_aterm &t) noexcept
 Swaps this term with its argument.
 
const function_symbolfunction () const
 Yields the function symbol in an aterm.
 

Additional Inherited Members

- Protected Member Functions inherited from atermpp::term_list< lps::state >
 term_list (detail::_aterm *t) noexcept
 Constructor for term lists from internally constructed terms delivered as reference.
 
- Protected Attributes inherited from atermpp::unprotected_aterm
const detail::_atermm_term
 

Detailed Description

This class contains state labels for an labelled transition system in .lts format.

A state label in .lts format consists of lists of balanced tree of data expressions. These represent sets of state vectors. The reason for the sets is that states can be merged by operations on state spaces, and if so, the sets of labels can easily be joined.

Definition at line 39 of file lts_lts.h.

Member Typedef Documentation

◆ super

Constructor & Destructor Documentation

◆ state_label_lts() [1/5]

mcrl2::lts::state_label_lts::state_label_lts ( )
inline

Default constructor.

Definition at line 46 of file lts_lts.h.

◆ state_label_lts() [2/5]

mcrl2::lts::state_label_lts::state_label_lts ( const state_label_lts )
default

Copy constructor.

◆ state_label_lts() [3/5]

template<class CONTAINER >
mcrl2::lts::state_label_lts::state_label_lts ( const CONTAINER &  l)
inlineexplicit

Construct a single state label out of the elements in a container.

Definition at line 58 of file lts_lts.h.

◆ state_label_lts() [4/5]

mcrl2::lts::state_label_lts::state_label_lts ( const lps::state l)
inlineexplicit

Construct a state label out of a balanced tree of data expressions, representing a state label.

Definition at line 66 of file lts_lts.h.

◆ state_label_lts() [5/5]

mcrl2::lts::state_label_lts::state_label_lts ( const super l)
inlineexplicit

Construct a state label out of list of balanced trees of data expressions, representing a state label.

Definition at line 73 of file lts_lts.h.

Member Function Documentation

◆ operator+()

state_label_lts mcrl2::lts::state_label_lts::operator+ ( const state_label_lts l) const
inline

An operator to concatenate two state labels.

Is optimal whenever |l| is smaller than the left operand, i.e. |l| < |this|.

Definition at line 81 of file lts_lts.h.

◆ operator=()

state_label_lts & mcrl2::lts::state_label_lts::operator= ( const state_label_lts )
default

Copy assignment.


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