#include <succiter.hh>
Inheritance diagram for spot::tgba_succ_iterator:
Public Member Functions | |
virtual | ~tgba_succ_iterator () |
Iteration | |
virtual void | first ()=0 |
Position the iterator on the first successor (if any). | |
virtual void | next ()=0 |
Jump to the next successor (if any). | |
virtual bool | done () const=0 |
Check whether the iteration is finished. | |
Inspection | |
virtual state * | current_state () const=0 |
Get the state of the current successor. | |
virtual bdd | current_condition () const=0 |
Get the condition on the transition leading to this successor. | |
virtual bdd | current_acceptance_conditions () const=0 |
Get the acceptance conditions on the transition leading to this successor. |
This class provides the basic functionalities required to iterate over the successors of a state, as well as querying transition labels. Because transitions are never explicitely encoded, labels (conditions and acceptance conditions) can only be queried while iterating over the successors.
|
|
|
Get the acceptance conditions on the transition leading to this successor.
Implemented in spot::tgba_succ_iterator_concrete, spot::tgba_explicit_succ_iterator, and spot::tgba_succ_iterator_product. |
|
Get the condition on the transition leading to this successor. This is a boolean function of atomic propositions. Implemented in spot::tgba_succ_iterator_concrete, spot::tgba_explicit_succ_iterator, and spot::tgba_succ_iterator_product. |
|
Get the state of the current successor. Note that the same state may occur at different points in the iteration. These actually correspond to the same destination. It just means there were several transitions, with different conditions, leading to the same state. Implemented in spot::tgba_succ_iterator_concrete, spot::tgba_explicit_succ_iterator, and spot::tgba_succ_iterator_product. |
|
Check whether the iteration is finished.
This function should be called after any call to
The usual way to do this is with a for (s->first(); !s->done(); s->next())
...
Implemented in spot::tgba_succ_iterator_concrete, spot::tgba_explicit_succ_iterator, and spot::tgba_succ_iterator_product. |
|
Position the iterator on the first successor (if any). This method can be called several times to make multiple passes over successors.
Implemented in spot::tgba_succ_iterator_concrete, spot::tgba_explicit_succ_iterator, and spot::tgba_succ_iterator_product. |
|
Jump to the next successor (if any).
Implemented in spot::tgba_succ_iterator_concrete, spot::tgba_explicit_succ_iterator, and spot::tgba_succ_iterator_product. |