#include <csdllist.h>
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. |
Nothing in this code affects the objects in the list. They do not get deleted by any of these function calls.
|
Add an item to the list, immediately after the current item. Then set the current item to be the one just added. |
|
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. |