A list of uint32_t objects.
More...
A list of uint32_t objects.
This is basically a list for uint32_t objects, but since it uses tables instead of those list objects normally used throughout Gwen it is less memory consuming.
◆ GWEN_IdList_AddId()
Adds an id to the list. This function does no doublecheck.
◆ GWEN_IdList_Clear()
Removes all ids from the list thus leaving it empty.
◆ GWEN_IdList_DelId()
Removes the first occurrence of the given id.
- Returns
- 0 if deleted, !=0 if the id wasn't found
◆ GWEN_IdList_dup()
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).
◆ GWEN_IdList_free()
◆ GWEN_IdList_GetFirstId()
Returns the first id from the list.
◆ GWEN_IdList_GetFirstId2()
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. |
◆ GWEN_IdList_GetNextId()
◆ GWEN_IdList_GetNextId2()
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. |
◆ GWEN_IdList_HasId()
Checks whether the given id exists in the idlist.
- Returns
- 0 if found, !=0 otherwise
◆ GWEN_IdList_new()
◆ GWEN_IdList_Sort()
Sorts the ids in ascending order