ListT< T >::ConstIterator Class Reference

#include <genlist.h>

Inheritance diagram for ListT< T >::ConstIterator:

BidirectionalIterator< T, DifferenceType > List of all members.

Public Member Functions

 ConstIterator ()
 ConstIterator (const Iterator &x)
BOOL operator== (const ConstIterator &x) const
ConstReference operator * () const
ConstIteratoroperator++ ()
ConstIterator operator++ (INT32)
ConstIteratoroperator-- ()
ConstIterator operator-- (INT32)

Protected Member Functions

 ConstIterator (LinkType x)

Protected Attributes

LinkType m_Node

Friends

class ListT< T >

Detailed Description

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

Definition at line 273 of file genlist.h.


Constructor & Destructor Documentation

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

Definition at line 278 of file genlist.h.

00278 : m_Node(x) {}

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

Definition at line 280 of file genlist.h.

00280 {}

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

Definition at line 281 of file genlist.h.

00281 : m_Node(x.m_Node) {}


Member Function Documentation

template<typename T>
ConstReference ListT< T >::ConstIterator::operator *  )  const [inline]
 

Definition at line 284 of file genlist.h.

00284 { return (*m_Node).data; }

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

Definition at line 293 of file genlist.h.

00294         { 
00295             ConstIterator tmp = *this;
00296             ++*this;
00297             return tmp;
00298         }

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

Definition at line 287 of file genlist.h.

00288         { 
00289             m_Node = (LinkType)((*m_Node).next);
00290             return *this;
00291         }

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

Definition at line 306 of file genlist.h.

00307         { 
00308             ConstIterator tmp = *this;
00309             --*this;
00310             return tmp;
00311         }

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

Definition at line 300 of file genlist.h.

00301         { 
00302             m_Node = (LinkType)((*m_Node).prev);
00303             return *this;
00304         }

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

Definition at line 282 of file genlist.h.

00282 { return m_Node == x.m_Node; } 


Friends And Related Function Documentation

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

Definition at line 275 of file genlist.h.


Member Data Documentation

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

Definition at line 277 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