Typedefs | |
typedef _List * | List |
typedef _ListIterator * | ListIterator |
typedef Boolean(* | ListComparator )(Pointer key, Pointer data) |
Functions | |
ErrorCode | listCreate (List *list) |
ErrorCode | listDestroy (List *list) |
ErrorCode | listAddFront (List list, Pointer data) |
ErrorCode | listAddBack (List list, Pointer data) |
ErrorCode | listRemove (List list, Pointer data) |
ErrorCode | listGetLength (List list, uint32 *length) |
ErrorCode | listGetFirst (List list, Pointer *data) |
ErrorCode | listGetLast (List list, Pointer *data) |
ErrorCode | listFind (List list, ListComparator comparator, Pointer key, Pointer *data) |
ErrorCode | listIteratorCreate (ListIterator *li, List list) |
ErrorCode | listIteratorReset (ListIterator li) |
ErrorCode | listIteratorGetNext (ListIterator li, Pointer *data) |
ErrorCode | listIteratorGetPrevious (ListIterator li, Pointer *data) |
ErrorCode | listIteratorDestroy (ListIterator *li) |
|
|
|
|
|
|
|
Add an item to the linked list at the back/tail |
|
Add an item to the linked list at the front/head |
|
Creates a doubly-linked list |
|
Delete a doubly-linked list |
|
Attempt to find an item in the list |
|
Get the first node in the list |
|
Get the last node in the list |
|
Get the total number of items in this list |
|
Create an iterator for a list |
|
Destroy a list iterator |
|
Get the next node in the list |
|
Get the previous node in the list |
|
Reset the iterator to point to the beginning on the list. Can be called at any time, even if the list has changed after the iterator was created |
|
Remove an item from the list |