NL3D::CQuadGrid< T >::CIterator Class Reference

#include <quad_grid.h>

Inheritance diagram for NL3D::CQuadGrid< T >::CIterator:

NL3D::CQuadGrid< T >::const_iterator

template<class T>
class NL3D::CQuadGrid< T >::CIterator


Public Member Functions

 CIterator (CNode *p)
 CIterator ()
T & operator * () const
bool operator!= (const const_iterator &x) const
CIterator operator++ (int)
CIteratoroperator++ ()
CIterator operator-- (int)
CIteratoroperator-- ()
bool operator== (const const_iterator &x) const

Protected Attributes

CNode_Ptr

Friends

class CIterator
class CQuadGrid< T >

Constructor & Destructor Documentation

template<class T>
NL3D::CQuadGrid< T >::CIterator::CIterator  )  [inline]
 

Definition at line 368 of file 3d/quad_grid.h.

00368 {_Ptr=NULL;}

template<class T>
NL3D::CQuadGrid< T >::CIterator::CIterator CNode p  )  [inline]
 

Definition at line 369 of file 3d/quad_grid.h.

00369 : const_iterator(p) {}


Member Function Documentation

template<class T>
T& NL3D::CQuadGrid< T >::CIterator::operator *  )  const [inline]
 

Reimplemented from NL3D::CQuadGrid< T >::const_iterator.

Definition at line 370 of file 3d/quad_grid.h.

References NL3D::CQuadGrid< T >::CNode::Elt.

00371                         {return _Ptr->Elt; }

template<class T>
bool NL3D::CQuadGrid< T >::CIterator::operator!= const const_iterator x  )  const [inline]
 

Reimplemented from NL3D::CQuadGrid< T >::const_iterator.

Definition at line 385 of file 3d/quad_grid.h.

References x.

00386                         {return (!(*this == x)); }

template<class T>
CIterator NL3D::CQuadGrid< T >::CIterator::operator++ int   )  [inline]
 

Reimplemented from NL3D::CQuadGrid< T >::const_iterator.

Definition at line 377 of file 3d/quad_grid.h.

00378                         {CIterator tmp = *this; ++*this; return (tmp); }

template<class T>
CIterator& NL3D::CQuadGrid< T >::CIterator::operator++  )  [inline]
 

Reimplemented from NL3D::CQuadGrid< T >::const_iterator.

Definition at line 375 of file 3d/quad_grid.h.

References NL3D::CQuadGrid< T >::CBaseNode::Next.

00376                         {_Ptr = (CNode*)(_Ptr->Next); return (*this); }

template<class T>
CIterator NL3D::CQuadGrid< T >::CIterator::operator-- int   )  [inline]
 

Reimplemented from NL3D::CQuadGrid< T >::const_iterator.

Definition at line 381 of file 3d/quad_grid.h.

00382                         {CIterator tmp = *this; --*this; return (tmp); }

template<class T>
CIterator& NL3D::CQuadGrid< T >::CIterator::operator--  )  [inline]
 

Reimplemented from NL3D::CQuadGrid< T >::const_iterator.

Definition at line 379 of file 3d/quad_grid.h.

References NL3D::CQuadGrid< T >::CBaseNode::Prev.

00380                         {_Ptr = (CNode*)(_Ptr->Prev); return (*this); }

template<class T>
bool NL3D::CQuadGrid< T >::CIterator::operator== const const_iterator x  )  const [inline]
 

Reimplemented from NL3D::CQuadGrid< T >::const_iterator.

Definition at line 383 of file 3d/quad_grid.h.

References x.

00384                         {return (_Ptr == x._Ptr); }


Friends And Related Function Documentation

template<class T>
friend class CIterator [friend, inherited]
 

Definition at line 361 of file 3d/quad_grid.h.

template<class T>
friend class CQuadGrid< T > [friend]
 

Reimplemented from NL3D::CQuadGrid< T >::const_iterator.

Definition at line 388 of file 3d/quad_grid.h.


Field Documentation

template<class T>
CNode* NL3D::CQuadGrid< T >::const_iterator::_Ptr [protected, inherited]
 

Definition at line 359 of file 3d/quad_grid.h.

Referenced by NL3D::CQuadGrid< T >::const_iterator::const_iterator(), NL3D::CQuadGrid< T >::const_iterator::operator *(), NL3D::CQuadGrid< T >::const_iterator::operator++(), NL3D::CQuadGrid< T >::const_iterator::operator--(), and NL3D::CQuadGrid< T >::const_iterator::operator==().


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 07:33:52 2004 for NeL by doxygen 1.3.6