ID list module
A list of GWEN_TYPE_UINT32 objects.
More...
Detailed Description
A list of GWEN_TYPE_UINT32 objects.
This is basically a list for GWEN_TYPE_UINT32 objects, but since it uses tables instead of those list objects normally used throughout Gwen it is less memory consuming.
Function Documentation
Adds an id to the list. This function does no doublecheck.
| GWENHYWFAR_API void GWEN_IdList_Clear |
( |
GWEN_IDLIST * |
idl |
) |
|
Removes all ids from the list thus leaving it empty.
Removes the first occurrence of the given id.
- Returns:
- 0 if deleted, !=0 if the id wasn't found
Returns a new id list which contains all the ids of the given list in the same order. However, the list returned is compact (i.e. it has no wholes).
| GWENHYWFAR_API void GWEN_IdList_free |
( |
GWEN_IDLIST * |
idl |
) |
|
Returns the first id from the list.
This function returns the first id stored in the list. It can also be used with const GWEN_IDLIST.
- Parameters:
-
| hdl | pointer to a 32 bit value to receive a handle to be used by GWEN_IdList_GetNextId2. This handle is only valid as longs as no ids are removed from the list. |
This function returns the next id stored in the list. It can also be used with const GWEN_IDLIST.
- Parameters:
-
| hdl | pointer to a 32 bit value to receive a handle to be used by GWEN_IdList_GetNextId2. This handle is only valid as longs as no ids are removed from the list. |
Checks whether the given id exists in the idlist.
- Returns:
- 0 if found, !=0 otherwise
| GWENHYWFAR_API int GWEN_IdList_Sort |
( |
GWEN_IDLIST * |
idl |
) |
|
Sorts the ids in ascending order