MprList Class Reference

List head class. More...

Inheritance diagram for MprList:

MprLink

List of all members.

Public Member Functions

MprLinkgetFirst ()
MprLinkgetLast ()
MprListgetList ()
 Destructor.
MprLinkgetNext (MprLink *item)
int getNumItems ()
MprLinkgetPrev (MprLink *item)
void insert (MprLink *item)
void insertAfter (MprLink *item)
 Return the owning list.
void insertPrior (MprLink *item)
 Insert prior to this member.
MprLinkremove (MprLink *item)


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

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

void MprLink::insertAfter ( MprLink item  )  [inline, inherited]

Return the owning list.

Insert after this member

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

Remove this item


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

© Embedthis Software LLC, 2003-2009. All rights reserved. Embedthis is a trademark of Embedthis Software LLC.