Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

DefaultSequenceIterator Class Reference

Default sequence iterator implementation. More...

#include <defaultsequenceiterator.hpp>

Inheritance diagram for DefaultSequenceIterator:

Inheritance graph
[legend]
Collaboration diagram for DefaultSequenceIterator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DefaultSequenceIterator ()
 Default constructor.
 ~DefaultSequenceIterator ()
 Default destructor.
bool hasNextTaskId ()
 Returns if there are more tasks that have to be executed.
int getNextTaskId ()
 Returns the id of the next task to be executed and stores the task id in previousIds vector.

Protected Attributes

int next

Detailed Description

Default sequence iterator implementation.

This is a default implementation of a sequence iterator. It just returns the task id one by one of the sequence stored at index zero in the sequences vector of PtfCore.

Definition at line 30 of file defaultsequenceiterator.hpp.


Constructor & Destructor Documentation

DefaultSequenceIterator::DefaultSequenceIterator  ) 
 

Default constructor.

Definition at line 25 of file defaultsequenceiterator.cpp.

References next.

DefaultSequenceIterator::~DefaultSequenceIterator  ) 
 

Default destructor.

Definition at line 32 of file defaultsequenceiterator.cpp.


Member Function Documentation

int DefaultSequenceIterator::getNextTaskId  )  [virtual]
 

Returns the id of the next task to be executed and stores the task id in previousIds vector.

Returns:
task id or -1 if there are no more tasks

Reimplemented from SequenceIterator.

Definition at line 50 of file defaultsequenceiterator.cpp.

References PtfCore::getMessageLog(), PtfCore::getSequences(), Singleton< PtfCore >::getSingleton(), hasNextTaskId(), and next.

Here is the call graph for this function:

bool DefaultSequenceIterator::hasNextTaskId  )  [virtual]
 

Returns if there are more tasks that have to be executed.

Returns:
true if there are more tasks that have to be executed, else false

Reimplemented from SequenceIterator.

Definition at line 40 of file defaultsequenceiterator.cpp.

References PtfCore::getSequences(), Singleton< PtfCore >::getSingleton(), and next.

Referenced by getNextTaskId().

Here is the call graph for this function:


Member Data Documentation

int DefaultSequenceIterator::next [protected]
 

Definition at line 32 of file defaultsequenceiterator.hpp.

Referenced by DefaultSequenceIterator(), getNextTaskId(), and hasNextTaskId().


The documentation for this class was generated from the following files:
Generated on Fri Dec 17 14:54:28 2004 for Psychological Test Framework by doxygen 1.3.8