|
Classes |
| struct | OSRTDListNode |
| | This structure is used to hold a single data item within the list. More...
|
| struct | OSRTDList |
| | This is the main list structure. More...
|
Defines |
|
#define | rtxDListAppendData(pctxt, pList, pData) |
|
#define | rtxDListFastInit(pList) |
Functions |
| void | rtxDListInit (OSRTDList *pList) |
| | This function initializes a doubly linked list structure.
|
| OSRTDListNode * | rtxDListAppend (struct OSCTXT *pctxt, OSRTDList *pList, void *pData) |
| | This function appends an item to the linked list structure.
|
| OSRTDListNode * | rtxDListInsert (struct OSCTXT *pctxt, OSRTDList *pList, int index, void *pData) |
| | This function inserts an item into the linked list structure.
|
| OSRTDListNode * | rtxDListInsertBefore (struct OSCTXT *pctxt, OSRTDList *pList, OSRTDListNode *node, void *pData) |
| | This function inserts an item into the linked list structure before the specified element.
|
| OSRTDListNode * | rtxDListInsertAfter (struct OSCTXT *pctxt, OSRTDList *pList, OSRTDListNode *node, void *pData) |
| | This function inserts an item into the linked list structure after the specified element.
|
| OSRTDListNode * | rtxDListFindByIndex (const OSRTDList *pList, int index) |
| | This function will return the node pointer of the indexed entry in the list.
|
| OSRTDListNode * | rtxDListFindByData (const OSRTDList *pList, void *data) |
| | This function will return the node pointer of the given data item within the list or NULL if the item is not found.
|
| int | rtxDListFindIndexByData (const OSRTDList *pList, void *data) |
| | This function will return the index of the given data item within the list or -1 if the item is not found.
|
| void | rtxDListFreeNode (struct OSCTXT *pctxt, OSRTDList *pList, OSRTDListNode *node) |
| | This function will remove the given node from the list and free memory.
|
| void | rtxDListRemove (OSRTDList *pList, OSRTDListNode *node) |
| | This function will remove the given node from the list.
|
| void | rtxDListFreeNodes (struct OSCTXT *pctxt, OSRTDList *pList) |
| | This function will free all of the dynamic memory used to hold the list node pointers.
|
| void | rtxDListFreeAll (struct OSCTXT *pctxt, OSRTDList *pList) |
| | This function will free all of the dynamic memory used to hold the list node pointers and the data items.
|
| int | rtxDListToArray (struct OSCTXT *pctxt, OSRTDList *pList, void **ppArray, OSUINT32 *pElements, int elemSize) |
| | This function converts a doubly linked list to an array.
|
| int | rtxDListAppendArray (struct OSCTXT *ctxt_p, OSRTDList *pList, void *pArray, OSUINT32 numElements, int elemSize) |
| | This function appends pointers to items in the given array to a doubly linked list structure.
|
| int | rtxDListAppendArrayCopy (struct OSCTXT *ctxt_p, OSRTDList *pList, const void *pArray, OSUINT32 numElements, int elemSize) |
| | This function appends a copy of each item in the given array to a doubly linked list structure.
|