mCRL2
|
A class containing triples, source label and target representing transitions. More...
#include <transition.h>
Public Types | |
typedef std::size_t | size_type |
The type of the elements in a transition. | |
Public Member Functions | |
transition () | |
transition (const std::size_t f, const std::size_t l, const std::size_t t) | |
Constructor (there is no default constructor). | |
transition (const transition &t)=default | |
Copy constructor. | |
transition (transition &&t)=default | |
Move constructor. | |
transition & | operator= (const transition &t)=default |
Assignment. | |
transition & | operator= (transition &&t)=default |
Move assignment. | |
size_type | from () const |
The source of the transition. | |
size_type | label () const |
The label of the transition. | |
size_type | to () const |
The target of the transition. | |
void | set_from (const size_type from) |
Set the source of the transition. | |
void | set_label (const size_type label) |
Set the label of the transition. | |
void | set_to (const size_type to) |
Set the target of the transition. | |
bool | operator== (const transition &t) const |
Standard equality on transitions. | |
bool | operator!= (const transition &t) const |
Standard inequality on transitions. | |
bool | operator< (const transition &t) const |
Standard lexicographic ordering on transitions. | |
Private Attributes | |
size_type | m_from |
size_type | m_label |
size_type | m_to |
A class containing triples, source label and target representing transitions.
A transition consists of three indices, indicated by transition::size_type that refer to a source, label and target.
Definition at line 47 of file transition.h.
typedef std::size_t mcrl2::lts::transition::size_type |
The type of the elements in a transition.
Definition at line 51 of file transition.h.
|
inline |
Definition at line 60 of file transition.h.
|
inline |
Constructor (there is no default constructor).
Definition at line 67 of file transition.h.
|
default |
Copy constructor.
|
default |
Move constructor.
|
inline |
The source of the transition.
Definition at line 89 of file transition.h.
|
inline |
The label of the transition.
Definition at line 95 of file transition.h.
|
inline |
Standard inequality on transitions.
Definition at line 137 of file transition.h.
|
inline |
Standard lexicographic ordering on transitions.
The ordering is lexicographic from left to right. First t.from are compared, then the label, and if these do not determine the ordering, to is investigated.
Definition at line 146 of file transition.h.
|
default |
Assignment.
|
default |
Move assignment.
|
inline |
Standard equality on transitions.
Definition at line 130 of file transition.h.
|
inline |
Set the source of the transition.
Definition at line 109 of file transition.h.
|
inline |
Set the label of the transition.
Definition at line 116 of file transition.h.
|
inline |
Set the target of the transition.
Definition at line 123 of file transition.h.
|
inline |
The target of the transition.
Definition at line 102 of file transition.h.
|
private |
Definition at line 54 of file transition.h.
|
private |
Definition at line 55 of file transition.h.
|
private |
Definition at line 56 of file transition.h.