NLPACS::CCollisionOT Class Reference

#include <collision_ot.h>

Inheritance diagram for NLPACS::CCollisionOT:

NLPACS::CCollisionOTInfo NLPACS::CCollisionOTDynamicInfo NLPACS::CCollisionOTStaticInfo

Detailed Description

Odered table element

Author:
Cyril 'Hulud' Corvazier

Nevrax France

Date:
2001

Definition at line 47 of file collision_ot.h.

Public Member Functions

 CCollisionOT ()
void clear ()
 Clear the element.

CCollisionOTgetNext () const
 Get next element in the ot.

CCollisionOTInfogetNextInfo () const
 Get next element in the ot.

CCollisionOTgetPrevious () const
 Get next element in the ot.

bool isInfo () const
 Return true if it an info collision else false;.

void link (CCollisionOT *newElement)
 Link in the ot.

void unlink ()
 Remove from OT.


Protected Attributes

bool _Info

Private Attributes

CCollisionOT_Next
CCollisionOT_Previous


Constructor & Destructor Documentation

NLPACS::CCollisionOT::CCollisionOT  )  [inline]
 

Definition at line 50 of file collision_ot.h.

References _Info, and clear().

00051         {
00052                 _Info=false;
00053                 clear ();
00054         }


Member Function Documentation

void NLPACS::CCollisionOT::clear void   )  [inline]
 

Clear the element.

Definition at line 57 of file collision_ot.h.

References _Previous.

Referenced by CCollisionOT().

00058         {
00059                 _Next=NULL;
00060                 _Previous=NULL;
00061         }

CCollisionOT* NLPACS::CCollisionOT::getNext  )  const [inline]
 

Get next element in the ot.

Definition at line 100 of file collision_ot.h.

00101         {
00102                 return _Next;
00103         }

CCollisionOTInfo * NLPACS::CCollisionOT::getNextInfo  )  const [inline]
 

Get next element in the ot.

Definition at line 456 of file collision_ot.h.

References isInfo().

00457 {
00458         // Get next
00459         CCollisionOT *next=_Next;
00460 
00461         // Is an info ?
00462         while ( next && (!next->isInfo ()) )
00463                 next=next->getNextInfo ();
00464 
00465         // Return an info
00466         return (CCollisionOTInfo*)next;
00467 }

CCollisionOT* NLPACS::CCollisionOT::getPrevious  )  const [inline]
 

Get next element in the ot.

Definition at line 94 of file collision_ot.h.

References _Previous.

00095         {
00096                 return _Previous;
00097         }

bool NLPACS::CCollisionOT::isInfo  )  const [inline]
 

Return true if it an info collision else false;.

Definition at line 88 of file collision_ot.h.

References _Info.

Referenced by getNextInfo().

00089         {
00090                 return _Info;
00091         }

void NLPACS::CCollisionOT::link CCollisionOT newElement  )  [inline]
 

Link in the ot.

Definition at line 64 of file collision_ot.h.

References _Next, and _Previous.

00065         {
00066                 if (newElement)
00067                 {
00068                         newElement->_Previous=this;
00069                         newElement->_Next=_Next;
00070                 }
00071                 if (_Next)
00072                         _Next->_Previous=newElement;
00073                 _Next=newElement;
00074         }

void NLPACS::CCollisionOT::unlink  )  [inline]
 

Remove from OT.

Definition at line 77 of file collision_ot.h.

References _Next, and _Previous.

00078         {
00079                 if (_Previous)
00080                         _Previous->_Next=_Next;
00081                 if (_Next)
00082                         _Next->_Previous=_Previous;
00083                 _Next=NULL;
00084                 _Previous=NULL;
00085         }


Field Documentation

bool NLPACS::CCollisionOT::_Info [protected]
 

Definition at line 117 of file collision_ot.h.

Referenced by CCollisionOT(), and isInfo().

CCollisionOT* NLPACS::CCollisionOT::_Next [private]
 

Reimplemented in NLPACS::CCollisionOTStaticInfo.

Definition at line 110 of file collision_ot.h.

Referenced by link(), and unlink().

CCollisionOT* NLPACS::CCollisionOT::_Previous [private]
 

Definition at line 113 of file collision_ot.h.

Referenced by clear(), getPrevious(), link(), and unlink().


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 14:10:26 2004 for NeL by doxygen 1.3.6