VR-Link API Documentation for DIS
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
DtListItem Class Reference

lint -e266 More...

+ Collaboration diagram for DtListItem:

List of all members.

Public Member Functions

virtual ~DtListItem ()
 Destructor.
DtListItemprev () const
 Return previous (next) item.
DtListItemnext () const
void * data () const
 Returns the data element contained in the DtListItem envelope.

Protected Member Functions

 DtListItem (void *d)
 Constructor - called only by DtList.

Protected Attributes

DtListItemmyPrev
DtListItemmyNext
void * myData

Friends

class DtList

Detailed Description

lint -e266

DtListItem is an envelope class used by DtList.

When you add an element to a DtList, it creates a DtListItem to contain the element. The DtListItem stores the next and previous pointer, as well as the data element itself.


Constructor & Destructor Documentation

virtual DtListItem::~DtListItem ( ) [virtual]

Destructor.

DtListItem::DtListItem ( void *  d) [protected]

Constructor - called only by DtList.


Member Function Documentation

void * DtListItem::data ( ) const [inline]

Returns the data element contained in the DtListItem envelope.

Referenced by DtOldHashlist::lookup().

DtListItem * DtListItem::next ( ) const [inline]
DtListItem * DtListItem::prev ( ) const [inline]

Return previous (next) item.

Inline Functions.

If you hit the beginning (end) of the list, returns NULL.

Referenced by DtOldHashlist::addBefore().


Friends And Related Function Documentation

friend class DtList [friend]

Member Data Documentation

void* DtListItem::myData [protected]

Referenced by DtList::addBefore().


The documentation for this class was generated from the following file:

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)