Iterator< T > Class Template Reference

A Java-style iterator. More...

#include <Iterator.h++>

Inheritance diagram for Iterator< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~Iterator ()
 Destructor.
virtual void rewind ()=0
 Rewind the iterator to the first item in the sequence.
virtual T next ()=0
 Get the next item in the sequence.
virtual bool hasNext ()=0
 Test if there are more items in the sequence.
virtual void remove ()=0
 Remove the current item from the sequence.

Detailed Description

template<typename T>
class ccxx::Iterator< T >

A Java-style iterator.

Author:
Mark Lindner

Constructor & Destructor Documentation

virtual ~Iterator (  )  [inline, virtual]

Destructor.

Reimplemented in Iterator.


Member Function Documentation

virtual bool hasNext (  )  [pure virtual]

Test if there are more items in the sequence.

Implemented in Iterator, XMLElementConstIterator, and XMLElementIterator.

virtual T next (  )  [pure virtual]

Get the next item in the sequence.

Implemented in Iterator, XMLElementConstIterator, and XMLElementIterator.

virtual void remove (  )  [pure virtual]

Remove the current item from the sequence.

Implemented in Iterator, XMLElementConstIterator, and XMLElementIterator.

virtual void rewind (  )  [pure virtual]

Rewind the iterator to the first item in the sequence.

Implemented in Iterator, XMLElementConstIterator, and XMLElementIterator.


The documentation for this class was generated from the following file:
Generated on Sat Nov 26 16:49:09 2011 for libcommonc++ by  doxygen 1.6.3