![]() |
VR-Link API Documentation for DIS
|
lint -e266 More...
Collaboration diagram for DtListItem:Public Member Functions | |
| virtual | ~DtListItem () |
| Destructor. | |
| DtListItem * | prev () const |
| Return previous (next) item. | |
| DtListItem * | next () 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 | |
| DtListItem * | myPrev |
| DtListItem * | myNext |
| void * | myData |
Friends | |
| class | DtList |
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.
| virtual DtListItem::~DtListItem | ( | ) | [virtual] |
Destructor.
| DtListItem::DtListItem | ( | void * | d | ) | [protected] |
Constructor - called only by DtList.
| 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().
friend class DtList [friend] |
void* DtListItem::myData [protected] |
DtListItem* DtListItem::myNext [protected] |
DtListItem* DtListItem::myPrev [protected] |
Referenced by DtList::addBefore().