|
Main Page Class Hierarchy Compound List File List Compound Members
csDLinkList Class ReferenceThis class implements a doubly-linked list.
More...
#include <csdllist.h>
List of all members.
Public Methods |
| csDLinkList () |
| Constructor.
|
| ~csDLinkList () |
| Deletes just the csDLListItems in the list, not the objects they point to.
|
bool | AddItem (void *theObj) |
| Add an item to the list. More...
|
bool | AddCurrentItem (void *theObj) |
| Add an item to the list, immediately after the current item. More...
|
void | RemoveItem () |
| Remove the currentItem from the list.
|
void | RemoveItem (void *theObj) |
| Remove the specified item from the list.
|
void* | GetFirstItem () |
| Return the first item in the list, and set the currentItem to the first item.
|
void* | PeekFirstItem () |
| Return the first item in the list, but do not set the currentItem to the first item.
|
void* | GetPrevItem () |
| Return the previous item in the list, and set the currentItem to that item.
|
void* | GetNextItem () |
| Return the next item in the list, and set the currentItem to that item.
|
void* | GetCurrentItem () |
| Return the current item in the list.
|
void* | SetCurrentItem (void *theObj) |
| Set the specified item as the currentItem.
|
Detailed Description
This class implements a doubly-linked list.
Note that this implementation builds a circular list, that means to next pointer of the last element points to the first element.
Nothing in this code affects the objects in the list. They do not get deleted by any of these function calls.
Member Function Documentation
bool csDLinkList::AddCurrentItem (
|
void * theObj )
|
|
|
Add an item to the list, immediately after the current item.
Then set the current item to be the one just added. |
bool csDLinkList::AddItem (
|
void * theObj )
|
|
|
Add an item to the list.
Does not affect the currentItem unless this is the first item added to the list, in which case this becomes the currentItem, as well as the firstItem. |
The documentation for this class was generated from the following file:
Generated for Crystal Space by
doxygen
1.2.5 written by
Dimitri van Heesch,
©1997-2000
|