libcommonc++  0.7
Iterator< T > Class Template Referenceabstract

A Java-style iterator. More...

#include <Iterator.h++>

Inheritance diagram for Iterator< T >:

Public Member Functions

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

Detailed Description

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

A Java-style iterator.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ ~Iterator()

virtual ~Iterator ( )
inlinevirtual

Destructor.

Reimplemented in BTree< K, V, ORDER >::Iterator.

Member Function Documentation

◆ hasNext()

virtual bool hasNext ( )
pure virtual

Test if there are more items in the sequence.

Implemented in BTree< K, V, ORDER >::Iterator, XMLElementConstIterator, and XMLElementIterator.

◆ next()

virtual T next ( )
pure virtual

Get the next item in the sequence.

Implemented in BTree< K, V, ORDER >::Iterator, XMLElementConstIterator, and XMLElementIterator.

◆ remove()

virtual void remove ( )
pure virtual

Remove the current item from the sequence.

Implemented in BTree< K, V, ORDER >::Iterator, XMLElementConstIterator, and XMLElementIterator.

◆ rewind()

virtual void rewind ( )
pure virtual

Rewind the iterator to the first item in the sequence.

Implemented in BTree< K, V, ORDER >::Iterator, XMLElementConstIterator, and XMLElementIterator.


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