Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Iterator Class Template Reference

Generic interface for Iterator classes. More...

#include <Iterator.h>

List of all members.

Public Methods

virtual void First () = 0 throw ()
 Move to first element.

virtual void Next () = 0 throw ()
 Move to next element. No-op if called when IsDone () == true.

virtual bool IsDone () const = 0 throw ()
 True if we are past the last element.

virtual ELEMENT* Get () const = 0 throw ()
 Get the current element. More...

Iterator& operator++ () throw ()
ELEMENT* operator-> () const throw ()
virtual ~Iterator () throw ()


Detailed Description

template<class ELEMENT> template class Iterator

Generic interface for Iterator classes.


Member Function Documentation

template<classELEMENT>
ELEMENT * Iterator<ELEMENT>::Get ( ) const throw () [pure virtual]
 

Get the current element.

It is the responsibility of the caller to ensure that IsDone () == false when this method is called. Implementations should use ppAssert () to check for this


The documentation for this class was generated from the following file:
Generated at Mon Nov 27 01:46:59 2000 for LibPenguinPlay by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000