MprList Class Reference

Inheritance diagram for MprList:

MprLink List of all members.

Detailed Description

List head class.

The MprList class defines the list (dummy) header for doubly linked objects. It provides forward and back links for fast insertion, removal and iteration. To use MprLink, subclasses must inherit MprLink as a base class. Use MprList for the dummy list header and MprLink for the list members.

Remarks:
This class is NOT thread-safe. Callers must do their own thread synchronization. It is designed to be "inline", very fast and no-frills.
Stability classification:
Evolving


Public Member Functions

MprLink getFirst ()
MprLink getLast ()
MprLink getNext (MprLink *item)
int  getNumItems ()
MprLink getPrev (MprLink *item)
void  insert (MprLink *item)
void  insertAfter (MprLink *item)
  Insert after this member.

void  insertPrior (MprLink *item)
  Insert prior to this member.

MprLink remove (MprLink *item)

Member Function Documentation

MprLink* MprList::getFirst  )  [inline]
 

Get first item

MprLink* MprList::getLast  )  [inline]
 

Get last item

MprLink* MprList::getNext MprLink item  )  [inline]
 

Get next item

int MprList::getNumItems  )  [inline]
 

Get number of items.

MprLink* MprList::getPrev MprLink item  )  [inline]
 

Get previous item

void MprList::insert MprLink item  )  [inline]
 

Add to the end of the list

MprLink* MprList::remove MprLink item  )  [inline]
 

Remove this item


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

© Mbedthis Software LLC, 2003-2004. All rights reserved. Mbedthis is a trademark of Mbedthis Software LLC.