rtxArrayList.h File Reference
ArrayList functions. More...
#include "rtxsrc/rtxContext.h"
Go to the source code of this file.
Classes | |
| struct | _OSRTArrayList |
| struct | _OSRTArrayListIter |
Defines | |
| #define | OSRT_ARRAYLIST_CAPACITY 10 |
Functions | |
| EXTERNRT void | rtxArrayListInit (OSRTArrayList *pArrayList, size_t capacity) |
| This function initializes an array list structure. | |
| EXTERNRT OSRTArrayList * | rtxNewArrayList (OSCTXT *pctxt, size_t capacity) |
| This function creates a new array list to hold the initial capacity of elements. | |
| EXTERNRT void | rtxFreeArrayList (OSCTXT *pctxt, OSRTArrayList *pArrayList) |
| This function frees all dynamic memory held by the array list. | |
| EXTERNRT int | rtxArrayListAdd (OSCTXT *pctxt, OSRTArrayList *pArrayList, void *pdata, OSUINT32 *pindex) |
| This function adds an element to an array list. | |
| EXTERNRT void | rtxArrayListRemove (OSCTXT *pctxt, OSRTArrayList *pArrayList, void *pdata) |
| This function removes an element from an array list. | |
| EXTERNRT void | rtxArrayListRemoveIndexed (OSCTXT *pctxt, OSRTArrayList *pArrayList, int index) |
| This function removes the element at the given index from the array list. | |
| EXTERNRT int | rtxArrayListInsert (OSCTXT *pctxt, OSRTArrayList *pArrayList, void *pdata, OSUINT32 index) |
| This function inserts an element at the given position in the array list. | |
| EXTERNRT int | rtxArrayListReplace (OSRTArrayList *pArrayList, void *pdata, OSUINT32 index) |
| This function replaces (overwrites) the element at the given position in the array list with the new element. | |
| EXTERNRT void * | rtxArrayListGetIndexed (const OSRTArrayList *pArrayList, OSUINT32 index) |
| This function gets the indexed data item from the array list. | |
| EXTERNRT int | rtxArrayListIndexOf (OSRTArrayList *pArrayList, void *pdata) |
| This function returns the index of the given data item in the list. | |
| EXTERNRT int | rtxArrayListInitIter (OSRTArrayListIter *piter, OSRTArrayList *pArrayList, OSUINT32 startIndex) |
| This function initializes an array list iterator with the given start index. | |
| EXTERNRT OSBOOL | rtxArrayListHasNextItem (OSRTArrayListIter *piter) |
| This function determines if another element exists at the next sequential position in the array list. | |
| EXTERNRT void * | rtxArrayListNextItem (OSRTArrayListIter *piter) |
| This function gets the next item from the array list. | |
Detailed Description
ArrayList functions.
Definition in file rtxArrayList.h.
Function Documentation
|
||||||||||||||||||||
|
This function adds an element to an array list.
|
|
||||||||||||
|
This function gets the indexed data item from the array list.
|
|
|
This function determines if another element exists at the next sequential position in the array list.
|
|
||||||||||||
|
This function returns the index of the given data item in the list. The 'equals' callback function is used to do comparisons.
|
|
||||||||||||
|
This function initializes an array list structure.
|
|
||||||||||||||||
|
This function initializes an array list iterator with the given start index.
|
|
||||||||||||||||||||
|
This function inserts an element at the given position in the array list.
|
|
|
This function gets the next item from the array list.
|
|
||||||||||||||||
|
This function removes an element from an array list.
|
|
||||||||||||||||
|
This function removes the element at the given index from the array list.
|
|
||||||||||||||||
|
This function replaces (overwrites) the element at the given position in the array list with the new element.
|
|
||||||||||||
|
This function frees all dynamic memory held by the array list. It does not free the array list structure itself, just the internal data array.
|
|
||||||||||||
|
This function creates a new array list to hold the initial capacity of elements.
|
