#include <cybergarage/util/clist.h>
#include <cybergarage/util/clog.h>
Functions | |
void | cg_list_header_init (CgList *list) |
void | cg_list_node_init (CgList *list) |
int | cg_list_size (CgList *headList) |
CgList * | cg_list_get (CgList *headList, int index) |
void | cg_list_insert (CgList *prevList, CgList *list) |
void | cg_list_add (CgList *headList, CgList *list) |
void | cg_list_remove (CgList *list) |
CgList * | cg_list_prev_circular (CgList *list) |
CgList * | cg_list_prev (CgList *list) |
CgList * | cg_list_next_circular (CgList *list) |
CgList * | cg_list_next (CgList *list) |
void | cg_list_clear (CgList *headList, CG_LIST_DESTRUCTORFUNC destructorFunc) |
|
|
|
Clear the list and delete all of its contents with CG_LIST_DESTRUCTORFUNC
|
|
Get an item from the list by the item's index
|
|
Initialize a list node to act as the first node
|
|
Insert a list node or a complete list structure after the given node
|
|
Get the next node. Returns NULL if end has been reached.
|
|
Get the next node. Wrap around if the end has been reached.
|
|
Initialize a list node to act as a regular node, part of a list.
|
|
Get the previous node. Returns NULL if beginning has been reached
|
|
Get the previous node. Wrap around if the beginning has been reached.
|
|
Remove a node from a list. Does not free any memory, but only removes the next and previous link associations regarding the given node.
|
|
Get the number of nodes in the current list structure. Counts forwards from the given node, so if you want to get the complete size, give a header node as the parameter.
|