Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

CIterator< T > Class Template Reference

#include <citerator.h>

Inheritance diagram for CIterator< T >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void first ()=0
virtual void next ()=0
virtual T * current_item ()=0
virtual int is_done ()=0

Detailed Description

template<class T>
class CIterator< T >

Generic abstract templatized interface for an iterator of the given class.

Todo:
The STL already defines iterators that are more robust and convenient than this interface; I've implemented them here for the sake of the final project, but if I continue to work on this framework outside of class, I should remove this class and just use the STL iterators.

Definition at line 22 of file citerator.h.


Member Function Documentation

template<class T>
virtual T* CIterator< T >::current_item  )  [pure virtual]
 

Return the current item.

Implemented in CDequeForwardIterator< T >, and CDequeBackwardIterator< T >.

template<class T>
virtual void CIterator< T >::first  )  [pure virtual]
 

Move to the first element.

Implemented in CDequeForwardIterator< T >, and CDequeBackwardIterator< T >.

template<class T>
virtual int CIterator< T >::is_done  )  [pure virtual]
 

Returns whether or not the iterator at the end of the list.

Implemented in CDequeForwardIterator< T >, and CDequeBackwardIterator< T >.

template<class T>
virtual void CIterator< T >::next  )  [pure virtual]
 

Move to the next element.

Implemented in CDequeForwardIterator< T >, and CDequeBackwardIterator< T >.


The documentation for this class was generated from the following file:
Generated on Wed Aug 27 11:58:55 2003 for GFW by doxygen 1.3.3