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

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

NL3D::CQuadTree< T >::CBaseNode

template<class T>
class NL3D::CQuadTree< T >::CNode


Public Member Functions

void clear ()
 CNode (const T &val)
bool isSelected ()

Data Fields

CBaseNodeNext
CBaseNodePrev
CBaseNodeQuadNexts [4]
CBaseNodeQuadPrevs [4]
Value

Constructor & Destructor Documentation

template<class T>
NL3D::CQuadTree< T >::CNode::CNode const T &  val  )  [inline]
 

Definition at line 283 of file quad_tree.h.

00283 : Value(val) {}


Member Function Documentation

template<class T>
void NL3D::CQuadTree< T >::CBaseNode::clear void   )  [inline, inherited]
 

Definition at line 250 of file quad_tree.h.

References NL3D::CQuadTree< T >::CBaseNode::Next, nlassert, NL3D::CQuadTree< T >::CBaseNode::Prev, NL3D::CQuadTree< T >::CBaseNode::QuadNexts, NL3D::CQuadTree< T >::CBaseNode::QuadPrevs, and uint.

Referenced by NL3D::CQuadTree< T >::CQuadNode::clear(), and NL3D::CQuadTree< T >::erase().

00251                 {
00252                         // On le retire de la selection.
00253                         if(Prev)        Prev->Next= Next;
00254                         if(Next)        Next->Prev= Prev;
00255                         Prev=Next=NULL;
00256                         // On le retire des listes dans les quads.
00257                         for(uint i=0;i<4;i++)
00258                         {
00259                                 if(QuadPrevs[i])        {nlassert(QuadPrevs[i]->QuadNexts[i]==this); QuadPrevs[i]->QuadNexts[i]= QuadNexts[i];}
00260                                 if(QuadNexts[i])        {nlassert(QuadNexts[i]->QuadPrevs[i]==this); QuadNexts[i]->QuadPrevs[i]= QuadPrevs[i];}
00261                                 QuadPrevs[i]=NULL;
00262                                 QuadNexts[i]=NULL;
00263                         }
00264                 }

template<class T>
bool NL3D::CQuadTree< T >::CBaseNode::isSelected  )  [inline, inherited]
 

Definition at line 265 of file quad_tree.h.

Referenced by NL3D::CQuadTree< T >::CQuadNode::selectLocalNodes().

00266                 {
00267                         return Prev!=NULL;
00268                 }


Field Documentation

template<class T>
CBaseNode * NL3D::CQuadTree< T >::CBaseNode::Next [inherited]
 

Definition at line 236 of file quad_tree.h.

Referenced by NL3D::CQuadTree< T >::begin(), NL3D::CQuadTree< T >::clear(), NL3D::CQuadTree< T >::CBaseNode::clear(), NL3D::CQuadTree< T >::clearSelection(), NL3D::CQuadTree< T >::CQuadTree(), NL3D::CQuadTree< T >::CIterator::operator++(), NL3D::CQuadTree< T >::const_iterator::operator++(), and NL3D::CQuadTree< T >::CQuadNode::selectLocalNodes().

template<class T>
CBaseNode* NL3D::CQuadTree< T >::CBaseNode::Prev [inherited]
 

Definition at line 236 of file quad_tree.h.

Referenced by NL3D::CQuadTree< T >::CBaseNode::clear(), NL3D::CQuadTree< T >::clearSelection(), NL3D::CQuadTree< T >::CIterator::operator--(), NL3D::CQuadTree< T >::const_iterator::operator--(), and NL3D::CQuadTree< T >::CQuadNode::selectLocalNodes().

template<class T>
CBaseNode* NL3D::CQuadTree< T >::CBaseNode::QuadNexts[4] [inherited]
 

Definition at line 239 of file quad_tree.h.

Referenced by NL3D::CQuadTree< T >::CQuadNode::addElement(), NL3D::CQuadTree< T >::CBaseNode::CBaseNode(), NL3D::CQuadTree< T >::CQuadNode::clear(), NL3D::CQuadTree< T >::CBaseNode::clear(), and NL3D::CQuadTree< T >::CQuadNode::selectLocalNodes().

template<class T>
CBaseNode* NL3D::CQuadTree< T >::CBaseNode::QuadPrevs[4] [inherited]
 

Definition at line 238 of file quad_tree.h.

Referenced by NL3D::CQuadTree< T >::CQuadNode::addElement(), NL3D::CQuadTree< T >::CBaseNode::CBaseNode(), and NL3D::CQuadTree< T >::CBaseNode::clear().

template<class T>
T NL3D::CQuadTree< T >::CNode::Value
 

Definition at line 282 of file quad_tree.h.

Referenced by NL3D::CQuadTree< T >::CIterator::operator *(), and NL3D::CQuadTree< T >::const_iterator::operator *().


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