Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

Iterator< Type > Class Template Reference

Templated iterator for using List<type> with a type safe API. More...

#include <GContainers.h>

Inheritance diagram for Iterator< Type >:

DLinkIterator List of all members.

Public Member Functions

 Iterator (DLinkList *l)
 Constructor.
 ~Iterator ()
 Destructor.
Type * operator[] (int Index)
 Return the pointer at 'Index'.
Type * First ()
 Return the first pointer.
Type * Last ()
 Return the first pointer.
Type * Next ()
 Return the next pointer.
Type * Prev ()
 Return the previous pointer.
Type * Current ()
 Return the current pointer.
bool HasItem (Type *p)
 Return true if the pointer is in the list.

Detailed Description

template<class Type>
class Iterator< Type >

Templated iterator for using List<type> with a type safe API.


Constructor & Destructor Documentation

template<class Type>
Iterator< Type >::Iterator DLinkList *  l  )  [inline]
 

Constructor.

Parameters:
l  The list to iterate.


The documentation for this class was generated from the following file:
Generated on Wed Oct 26 14:47:04 2005 for Lgi by  doxygen 1.4.1