ListT< T >::Iterator Class Reference

#include <genlist.h>

Inheritance diagram for ListT< T >::Iterator:

BidirectionalIterator< T, DifferenceType > List of all members.

Public Member Functions

 Iterator ()
BOOL operator== (const Iterator &x) const
Reference operator * () const
Iteratoroperator++ ()
Iterator operator++ (INT32)
Iteratoroperator-- ()
Iterator operator-- (INT32)

Protected Member Functions

 Iterator (LinkType x)

Protected Attributes

LinkType m_Node

Friends

class ListT< T >
class ConstIterator

Detailed Description

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

Definition at line 234 of file genlist.h.


Constructor & Destructor Documentation

template<typename T>
ListT< T >::Iterator::Iterator LinkType  x  )  [inline, protected]
 

Definition at line 241 of file genlist.h.

00241 : m_Node(x) {}

template<typename T>
ListT< T >::Iterator::Iterator  )  [inline]
 

Definition at line 244 of file genlist.h.

00244 {}


Member Function Documentation

template<typename T>
Reference ListT< T >::Iterator::operator *  )  const [inline]
 

Definition at line 247 of file genlist.h.

00247 { return (*m_Node).data; }

template<typename T>
Iterator ListT< T >::Iterator::operator++ INT32   )  [inline]
 

Definition at line 254 of file genlist.h.

00255         { 
00256             Iterator tmp = *this;
00257             ++*this;
00258             return tmp;
00259         }

template<typename T>
Iterator& ListT< T >::Iterator::operator++  )  [inline]
 

Definition at line 248 of file genlist.h.

00249         { 
00250             m_Node = (LinkType)((*m_Node).next);
00251             return *this;
00252         }

template<typename T>
Iterator ListT< T >::Iterator::operator-- INT32   )  [inline]
 

Definition at line 265 of file genlist.h.

00266         { 
00267             Iterator tmp = *this;
00268             --*this;
00269             return tmp;
00270         }

template<typename T>
Iterator& ListT< T >::Iterator::operator--  )  [inline]
 

Definition at line 260 of file genlist.h.

00261         { 
00262             m_Node = (LinkType)((*m_Node).prev);
00263             return *this;
00264         }

template<typename T>
BOOL ListT< T >::Iterator::operator== const Iterator x  )  const [inline]
 

Definition at line 246 of file genlist.h.

00246 { return m_Node == x.m_Node; }


Friends And Related Function Documentation

template<typename T>
friend class ConstIterator [friend]
 

Definition at line 237 of file genlist.h.

template<typename T>
friend class ListT< T > [friend]
 

Definition at line 236 of file genlist.h.


Member Data Documentation

template<typename T>
LinkType ListT< T >::Iterator::m_Node [protected]
 

Definition at line 240 of file genlist.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 03:56:02 2007 for Camelot by  doxygen 1.4.4