spot  1.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
spot::explicit_state_conjunction Class Reference

Basic implementation of saba_state_conjunction. More...

#include <saba/explicitstateconjunction.hh>

Inheritance diagram for spot::explicit_state_conjunction:
Inheritance graph
Collaboration diagram for spot::explicit_state_conjunction:
Collaboration graph

Public Member Functions

 explicit_state_conjunction (const explicit_state_conjunction *other)
 
explicit_state_conjunctionoperator= (const explicit_state_conjunction &o)
 
void add (saba_state *state)
 
Iteration
virtual void first ()
 Position the iterator on the first successor of the conjunction (if any). More...
 
virtual void next ()
 Jump to the next successor (if any). More...
 
virtual bool done () const
 Check whether the iteration over a conjunction of states is finished. More...
 
Inspection
explicit_state_conjunctionclone () const
 Duplicate a this conjunction. More...
 
virtual saba_statecurrent_state () const
 

Detailed Description

Basic implementation of saba_state_conjunction.

This class provides a basic implementation to iterate over a conjunction of states of a saba.

Member Function Documentation

void spot::explicit_state_conjunction::add ( saba_state state)

Add a new state in the conjunction. The class becomes owner of state.

explicit_state_conjunction* spot::explicit_state_conjunction::clone ( ) const
virtual

Duplicate a this conjunction.

Implements spot::saba_state_conjunction.

virtual saba_state* spot::explicit_state_conjunction::current_state ( ) const
virtual

Return the a new instance on the current state. This is the caller responsibility to delete the returned state.

Implements spot::saba_state_conjunction.

virtual bool spot::explicit_state_conjunction::done ( ) const
virtual

Check whether the iteration over a conjunction of states is finished.

This function should be called after any call to first() or next() and before any enquiry about the current state.

Implements spot::saba_state_conjunction.

virtual void spot::explicit_state_conjunction::first ( )
virtual

Position the iterator on the first successor of the conjunction (if any).

This method can be called several times to make multiple passes over successors.

Warning
One should always call done() to ensure there is a successor, even after first(). A common trap is to assume that there is at least one successor: this is wrong.

Implements spot::saba_state_conjunction.

virtual void spot::explicit_state_conjunction::next ( )
virtual

Jump to the next successor (if any).

Warning
Again, one should always call done() to ensure there is a successor.

Implements spot::saba_state_conjunction.


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

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Thu May 15 2014 11:04:11 for spot by doxygen 1.8.4