NL3D::CFastPtrListNode Class Reference

#include <fast_ptr_list.h>


Detailed Description

See CFastPtrListBase. Each class you want to insert in a CFastPtrList should have a CFastPtrListNode.

Definition at line 43 of file fast_ptr_list.h.

Public Member Functions

 CFastPtrListNode (const CFastPtrListNode &o)
 CFastPtrListNode ()
bool isLinked () const
CFastPtrListNodeoperator= (const CFastPtrListNode &o)
void unlink ()
 ~CFastPtrListNode ()

Private Attributes

uint32 _IndexInOwner
CFastPtrListBase_Owner

Friends

class CFastPtrListBase


Constructor & Destructor Documentation

NL3D::CFastPtrListNode::CFastPtrListNode  )  [inline]
 

Definition at line 46 of file fast_ptr_list.h.

References _Owner.

00046 {_Owner= NULL;}

NL3D::CFastPtrListNode::~CFastPtrListNode  )  [inline]
 

Definition at line 47 of file fast_ptr_list.h.

References unlink().

00047 {unlink();}

NL3D::CFastPtrListNode::CFastPtrListNode const CFastPtrListNode o  )  [inline]
 

Definition at line 49 of file fast_ptr_list.h.

References _Owner.

00049 {_Owner= NULL;}


Member Function Documentation

bool NL3D::CFastPtrListNode::isLinked  )  const [inline]
 

Definition at line 55 of file fast_ptr_list.h.

References _Owner.

Referenced by NL3D::CQuadGridClipCluster::addModel(), and NL3D::CTransformShape::isLinkToQuadCluster().

00055 {return _Owner!=NULL;}

CFastPtrListNode& NL3D::CFastPtrListNode::operator= const CFastPtrListNode o  )  [inline]
 

Definition at line 58 of file fast_ptr_list.h.

00059         {
00060                 return *this;
00061         }

void NL3D::CFastPtrListNode::unlink  ) 
 

Definition at line 37 of file fast_ptr_list.cpp.

References _Owner, NL3D::CFastPtrListBase::erase(), and nlassert.

Referenced by NL3D::CTransform::hrcUnlink(), NL3D::CFastPtrListBase::insert(), NL3D::CQuadGridClipCluster::removeModel(), NL3D::CTransformShape::unlinkFromQuadCluster(), and ~CFastPtrListNode().

00038 {
00039         // If linked to a list, remove me.
00040         if(_Owner)
00041         {
00042                 _Owner->erase(this);
00043                 nlassert(_Owner==NULL);
00044         }
00045 }


Friends And Related Function Documentation

friend class CFastPtrListBase [friend]
 

Definition at line 65 of file fast_ptr_list.h.


Field Documentation

uint32 NL3D::CFastPtrListNode::_IndexInOwner [private]
 

Definition at line 67 of file fast_ptr_list.h.

Referenced by NL3D::CFastPtrListBase::erase(), and NL3D::CFastPtrListBase::insert().

CFastPtrListBase* NL3D::CFastPtrListNode::_Owner [private]
 

Definition at line 66 of file fast_ptr_list.h.

Referenced by CFastPtrListNode(), NL3D::CFastPtrListBase::erase(), NL3D::CFastPtrListBase::insert(), isLinked(), and unlink().


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 06:46:33 2004 for NeL by doxygen 1.3.6