| |
|
|||||||
|
|
||||||||
|
faudes::TTransSet< Cmp > Class Template Reference Detailed Descriptiontemplate<class Cmp = TransSort::X1EvX2> class faudes::TTransSet< Cmp > Set of Transitions. This container class provides similar functionality and interface as BaseSet, but for Transitions rather than indices. The additional feature is a template parameter that allows to specify alternative sorting. For algorithms that examine a transition relation by e.g. the successor state X2, it may be worthwhile to copy a given TTransRel<TransSort::X1EvX2> to a TTransRel<TransSort::X2EvX1>. Example, assuming some transition relation is given in default order TransSet transrel; // transrel default order X1-Ev-X2
// ... some operation to set up transrel
TTransSet<TransSort::X2EvX1> transByX2; // alternative order X2-Ev-X1
transrel.ReSort(transByX2); // copy and re-order transrel
for(; tit!=tit_end; ++tit) { // loop over all transitions with specified x2
// ... code to examine tramsitions with specified x2
}
Definition cfl_baseset.h:422 void ReSort(TTransSet< OtherCmp > &res) const Definition cfl_transset.h:1911 Note: it is the context of a Generator that actually allows to interpret a TTransSet as a set of transitions as opposed to a set of triples of indices. In particular, file IO of transitions is provided by the generator class (although TTransSet provides basic output functions for debugging) Definition at line 242 of file cfl_transset.h.
Member Typedef Documentation◆ Iterator
template<class Cmp = TransSort::X1EvX2>
Iterator on transition Definition at line 279 of file cfl_transset.h. Constructor & Destructor Documentation◆ TTransSet() [1/3]
template<class Cmp >
doxygen group Construct an empty TTransSet object Definition at line 1372 of file cfl_transset.h. ◆ TTransSet() [2/3]
template<class Cmp >
Copy-constructor Definition at line 1379 of file cfl_transset.h. ◆ TTransSet() [3/3]
template<class Cmp >
template<class OtherCmp >
Re-Sort Copy-constructor Definition at line 1388 of file cfl_transset.h. ◆ ~TTransSet()
template<class Cmp = TransSort::X1EvX2>
Virtual destructor Definition at line 272 of file cfl_transset.h. Member Function Documentation◆ ActiveEvents()
template<class Cmp >
Get set of events that are active for a specified current state Since a transition set does not refer to a SymbolTable, this function returns a set of plain indices. In order to interpret the set as an EventSet, the relevant SymbolTable must be supplied as second argument. If obmitting the second argument, the defult SymbolTable is used.
Definition at line 2111 of file cfl_transset.h. ◆ Begin() [1/3]
template<class Cmp >
Iterator to first Transition specified by current state.
Definition at line 1427 of file cfl_transset.h. ◆ Begin() [2/3]
template<class Cmp >
Iterator to first Transitions specified by current state and event.
Definition at line 1449 of file cfl_transset.h. ◆ Begin() [3/3]
template<class Cmp >
doxygen group: iterators Iterator to begin of set
Definition at line 1410 of file cfl_transset.h. ◆ BeginByEv()
template<class Cmp >
Iterator to first Transition specified by event. This function requires sorting TransSort::EvX1X2 or TransSort::EvX2X1.
Definition at line 1469 of file cfl_transset.h. ◆ BeginByEvX1()
template<class Cmp >
Iterator to first Transition specified by event and current state. This function requires sorting TransSort::EvX1X2.
Definition at line 1491 of file cfl_transset.h. ◆ BeginByEvX2()
template<class Cmp >
Iterator to first Transition specified by event and next state. This function requires sorting TransSort::EvX2X1.
Definition at line 1511 of file cfl_transset.h. ◆ BeginByX2()
template<class Cmp >
Iterator to first Transition specified by successor state x2. This function requires sorting TransSort::X2EvX1 or TransSort::X2X1Ev.
Definition at line 1531 of file cfl_transset.h. ◆ BeginByX2Ev()
template<class Cmp >
Iterator to first Transition specified by successor x2 and ev. This function requires sorting TransSort::X2EvX1.
Definition at line 1553 of file cfl_transset.h. ◆ DoCopy()
template<class Cmp >
Copy my members.
Definition at line 1396 of file cfl_transset.h. ◆ DoMove()
template<class Cmp >
Copy my members.
Definition at line 1403 of file cfl_transset.h. ◆ DoRead()
template<class Cmp >
Read from TokenReader, see Type::Read for public wrappers. This method readsindex triplets only. See vGenerator methods for symbolic names and attributes etc.
Reimplemented from faudes::TBaseSet< T, Cmp >. Definition at line 1616 of file cfl_transset.h. ◆ DoWrite()
template<class Cmp >
Write to TokenWriter, see Type::Write for public wrappers. This method writes index triplets only. See vGenerator methods for symbolic names and attributes etc.
Reimplemented from faudes::TBaseSet< T, Cmp >. Definition at line 1596 of file cfl_transset.h. ◆ End() [1/3]
template<class Cmp >
Iterator to end or Transitions with specified current state.
Definition at line 1438 of file cfl_transset.h. ◆ End() [2/3]
template<class Cmp >
Iterator to first Transition after spcified current state and event.
Definition at line 1459 of file cfl_transset.h. ◆ End() [3/3]
template<class Cmp >
Iterator to end of set
Definition at line 1415 of file cfl_transset.h. ◆ EndByEv()
template<class Cmp >
Iterator to first Transition after specified by event. This function requires sorting TransSort::EvX1X2 or TransSort::EvX2X1
Definition at line 1480 of file cfl_transset.h. ◆ EndByEvX1()
template<class Cmp >
Iterator to first Transition after specified ev and current state. This function requires sorting TransSort::EvX1X2.
Definition at line 1501 of file cfl_transset.h. ◆ EndByEvX2()
template<class Cmp >
Iterator to first Transition after specified event and next state. This function requires sorting TransSort::EvX2X1.
Definition at line 1521 of file cfl_transset.h. ◆ EndByX2()
template<class Cmp >
Iterator to first Transition after specified successor state x2. This function requires sorting TransSort::X2EvX1 or TransSort::X2X1Ev
Definition at line 1542 of file cfl_transset.h. ◆ EndByX2Ev()
template<class Cmp >
Iterator to first Transition after specified successor x2 and ev. This function requires sorting TransSort::X2EvX1.
Definition at line 1563 of file cfl_transset.h. ◆ Erase() [1/3]
template<class Cmp >
Remove a Transition by iterator
Reimplemented from faudes::TBaseSet< T, Cmp >. Definition at line 1701 of file cfl_transset.h. ◆ Erase() [2/3]
template<class Cmp >
Remove a Transition
Definition at line 1689 of file cfl_transset.h. ◆ Erase() [3/3]
template<class Cmp >
Remove a Transition by x1, ev, x2
Definition at line 1695 of file cfl_transset.h. ◆ EraseByEv()
template<class Cmp >
Remove all transitions containing event ev. This function iterates over all transitions to work with any sorting.
Definition at line 1762 of file cfl_transset.h. ◆ EraseByX1()
template<class Cmp >
Remove all transitions containing predecessor state x1.
Definition at line 1707 of file cfl_transset.h. ◆ EraseByX1Ev()
template<class Cmp >
Remove all transitions containing predecessor state x1 and event ev.
Definition at line 1727 of file cfl_transset.h. ◆ EraseByX1OrX2() [1/2]
template<class Cmp >
Remove all transitions containing a specified state. This function iterates over all transitions to work with any sorting.
Definition at line 1797 of file cfl_transset.h. ◆ EraseByX1OrX2() [2/2]
template<class Cmp >
Remove all transitions containing state x, This function iterates over all transitions to work with any sorting.
Definition at line 1779 of file cfl_transset.h. ◆ EraseByX2()
template<class Cmp >
Remove all transitions containing successor state x2. This function iterates over all transitions to work with any sorting.
Definition at line 1746 of file cfl_transset.h. ◆ Exists() [1/2]
template<class Cmp >
◆ Exists() [2/2]
template<class Cmp >
Test existence
Definition at line 1860 of file cfl_transset.h. ◆ ExistsByX1()
template<class Cmp >
Test existence
Definition at line 1892 of file cfl_transset.h. ◆ ExistsByX1Ev()
template<class Cmp >
Test existence
Definition at line 1876 of file cfl_transset.h. ◆ ExistsByX1OrX2()
template<class Cmp >
Tests if a transition with specified predecessor or successor state exists.
Definition at line 1865 of file cfl_transset.h. ◆ Find() [1/2]
template<class Cmp >
Find specified transition
Definition at line 1850 of file cfl_transset.h. ◆ Find() [2/2]
template<class Cmp >
Find transition given by x1, ev, x2
Definition at line 1844 of file cfl_transset.h. ◆ IncommingEvents()
template<class Cmp >
Get set of events by which one can attend the specified successor state. This function requires sorting TransSort::X2EvX1 or TransSort::X2X1Ev
Definition at line 2123 of file cfl_transset.h. ◆ Inject() [1/2]
template<class Cmp >
Add a Transition.
Definition at line 1678 of file cfl_transset.h. ◆ Inject() [2/2]
template<class Cmp >
Add a Transition.
Definition at line 1683 of file cfl_transset.h. ◆ Insert() [1/2]
template<class Cmp >
doxygen group Add a Transition.
Definition at line 1667 of file cfl_transset.h. ◆ Insert() [2/2]
template<class Cmp >
Add a Transition by indices
Definition at line 1672 of file cfl_transset.h. ◆ operator*()
template<class Cmp >
◆ operator+()
template<class Cmp >
doxygen group: operators Set union operator
Definition at line 1573 of file cfl_transset.h. ◆ operator-()
template<class Cmp >
Set difference operator
Definition at line 1580 of file cfl_transset.h. ◆ PredecessorStates() [1/4]
template<class Cmp >
Get set of predecessor states for specified target states This function requires sorting TransSort::X2EvX1 or TransSort::X2X1Ev
Definition at line 2038 of file cfl_transset.h. ◆ PredecessorStates() [2/4]
template<class Cmp >
Get set of predecessor states for specified target states and events This function requires sorting TransSort::X2EvX1 or TransSort::X2X1Ev
Definition at line 2075 of file cfl_transset.h. ◆ PredecessorStates() [3/4]
template<class Cmp >
Get set of predecessor states for specified target state This function requires sorting TransSort::X2EvX1 or TransSort::X2X1Ev
Definition at line 2020 of file cfl_transset.h. ◆ PredecessorStates() [4/4]
template<class Cmp >
Get set of predecessor states for specified targetstate and event This function requires sorting TransSort::X2EvX1 or TransSort::X2X1Ev
Definition at line 2059 of file cfl_transset.h. ◆ ReSort()
template<class Cmp >
template<class OtherCmp >
doxygen group Get copy of trantision relation sorted by other compare operator, e.g. TSort::X2EvX1
Definition at line 1911 of file cfl_transset.h. ◆ RestrictEvents()
template<class Cmp >
Restrict to transitions with events as specified. Erases any transition with event not in the specified state set.
Definition at line 1828 of file cfl_transset.h. ◆ RestrictStates()
template<class Cmp >
Restrict to transitions with states as specified. Erases any transition with X1 or X2 not in the specified state set.
Definition at line 1812 of file cfl_transset.h. ◆ States()
template<class Cmp >
Get state set covered by transition set
Definition at line 1920 of file cfl_transset.h. ◆ Str() [1/2]
template<class Cmp >
Return pretty printable string representation. Primary meant for debugging messages.
Definition at line 2135 of file cfl_transset.h. ◆ Str() [2/2]
template<class Cmp >
Return pretty printable string representation. Primary meant for debugging messages.
Reimplemented from faudes::TBaseSet< T, Cmp >. Definition at line 2140 of file cfl_transset.h. ◆ SuccessorStates() [1/4]
template<class Cmp >
Get set of successor states for specified current states
Definition at line 1948 of file cfl_transset.h. ◆ SuccessorStates() [2/4]
template<class Cmp >
Get set of successor states for specified current states and events
Definition at line 1985 of file cfl_transset.h. ◆ SuccessorStates() [3/4]
template<class Cmp >
Get set of successor states for specified current state
Definition at line 1931 of file cfl_transset.h. ◆ SuccessorStates() [4/4]
template<class Cmp >
Get set of successor states for specified current state and event
Definition at line 1969 of file cfl_transset.h. The documentation for this class was generated from the following file: libFAUDES 2.34g --- 2026.04.09 --- c++ api documentaion by doxygen |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||