seal::LinkedList< T >::Iterator Class Reference

#include <list.h>

Inheritance diagram for seal::LinkedList< T >::Iterator:

seal::AbstractIterator< T >

List of all members.

Public Member Functions

 Iterator (void)
virtual bool hasNext (void)
virtual T next (void) throw (OutOfBoundsException)
virtual void reset (void)


Detailed Description

template<typename T>
class seal::LinkedList< T >::Iterator

This class encapsulates an iterator for objects of class LinkedList. A user of the SEAL library will never need to use this class explicitly.

Constructor & Destructor Documentation

template<typename T>
seal::LinkedList< T >::Iterator::Iterator ( void   )  [inline]

Default constructor.


Member Function Documentation

template<typename T>
bool seal::LinkedList< T >::Iterator::hasNext ( void   )  [inline, virtual]

This function will return true if the iterator can iterate to the next element in the list. It returns false otherwise.

Implements seal::AbstractIterator< T >.

template<typename T>
T seal::LinkedList< T >::Iterator::next ( void   )  throw (OutOfBoundsException) [inline, virtual]

A call to this function will make the iterator iterate to the next element in the list and return that element. If the iterator cannot iterate to the next element, because it has reached the end of the list, it will throw an OutOfBoundsException.

Implements seal::AbstractIterator< T >.

template<typename T>
void seal::LinkedList< T >::Iterator::reset ( void   )  [inline, virtual]

A call to this function will reset the iterator to the begining of the list. A call to next, after a call to this reset function, will return the first element of the list.

Implements seal::AbstractIterator< T >.


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

Generated on Sat May 16 21:35:20 2009 for SEAL by  doxygen 1.5.5