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

#include <quad_tree.h>

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

NL3D::CQuadTree< T >::const_iterator

template<class T>
class NL3D::CQuadTree< 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 CQuadTree< T >

Constructor & Destructor Documentation

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

Definition at line 623 of file quad_tree.h.

00623 {_Ptr=NULL;}

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

Definition at line 624 of file quad_tree.h.

00624 : const_iterator(p) {}


Member Function Documentation

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

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

Definition at line 625 of file quad_tree.h.

References NL3D::CQuadTree< T >::CNode::Value.

00626                         {return _Ptr->Value; }

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

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

Definition at line 640 of file quad_tree.h.

References x.

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

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

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

Definition at line 632 of file quad_tree.h.

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

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

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

Definition at line 630 of file quad_tree.h.

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

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

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

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

Definition at line 636 of file quad_tree.h.

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

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

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

Definition at line 634 of file quad_tree.h.

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

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

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

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

Definition at line 638 of file quad_tree.h.

References x.

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


Friends And Related Function Documentation

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

Definition at line 616 of file quad_tree.h.

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

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

Definition at line 643 of file quad_tree.h.


Field Documentation

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

Definition at line 614 of file quad_tree.h.

Referenced by NL3D::CQuadTree< T >::erase().


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