Functions | |
GWENHYWFAR_API int | GWEN_IdList64_AddId (GWEN_IDLIST64 *idl, uint64_t id) |
GWENHYWFAR_API void | GWEN_IdList64_Attach (GWEN_IDLIST64 *idl) |
GWENHYWFAR_API void | GWEN_IdList64_Clear (GWEN_IDLIST64 *idl) |
GWENHYWFAR_API int | GWEN_IdList64_DelId (GWEN_IDLIST64 *idl, uint64_t id) |
GWENHYWFAR_API GWEN_IDLIST64 * | GWEN_IdList64_dup (const GWEN_IDLIST64 *idl) |
GWENHYWFAR_API void | GWEN_IdList64_free (GWEN_IDLIST64 *idl) |
GWENHYWFAR_API DEPRECATED uint64_t | GWEN_IdList64_GetFirstId (GWEN_IDLIST64 *idl) |
GWENHYWFAR_API DEPRECATED uint64_t | GWEN_IdList64_GetFirstId2 (const GWEN_IDLIST64 *idl, uint64_t *hdl) |
GWENHYWFAR_API DEPRECATED uint64_t | GWEN_IdList64_GetNextId (GWEN_IDLIST64 *idl) |
GWENHYWFAR_API DEPRECATED uint64_t | GWEN_IdList64_GetNextId2 (const GWEN_IDLIST64 *idl, uint64_t *hdl) |
GWENHYWFAR_API int | GWEN_IdList64_HasId (const GWEN_IDLIST64 *idl, uint64_t id) |
GWENHYWFAR_API GWEN_IDLIST64 * | GWEN_IdList64_new () |
GWENHYWFAR_API int | GWEN_IdList64_Sort (GWEN_IDLIST64 *idl) |
This is basically a list for uint64_t objects, but since it uses tables instead of those list objects normally used throughout Gwen it is less memory consuming.
GWENHYWFAR_API int GWEN_IdList64_AddId | ( | GWEN_IDLIST64 * | idl, | |
uint64_t | id | |||
) |
Adds an id to the list. This function does no doublecheck.
Definition at line 255 of file idlist64.c.
References GWEN_IdTable64_AddId(), GWEN_IdTable64_IsFull(), and GWEN_IdTable64_new().
Referenced by GWEN_IdList64_dup(), and GWEN_IdList64_Sort().
GWENHYWFAR_API void GWEN_IdList64_Attach | ( | GWEN_IDLIST64 * | idl | ) |
GWENHYWFAR_API void GWEN_IdList64_Clear | ( | GWEN_IDLIST64 * | idl | ) |
Removes all ids from the list thus leaving it empty.
Definition at line 475 of file idlist64.c.
GWENHYWFAR_API int GWEN_IdList64_DelId | ( | GWEN_IDLIST64 * | idl, | |
uint64_t | id | |||
) |
Removes the first occurrence of the given id.
Definition at line 281 of file idlist64.c.
References GWEN_IdList64_Clean(), and GWEN_IdTable64_DelId().
GWENHYWFAR_API GWEN_IDLIST64* GWEN_IdList64_dup | ( | const GWEN_IDLIST64 * | idl | ) |
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).
Definition at line 484 of file idlist64.c.
References GWEN_IdList64_AddId(), and GWEN_IdList64_new().
GWENHYWFAR_API void GWEN_IdList64_free | ( | GWEN_IDLIST64 * | idl | ) |
Destructor.
Definition at line 243 of file idlist64.c.
References GWEN_FREE_OBJECT.
Referenced by GWEN_IdList64_Iterator_free().
GWENHYWFAR_API DEPRECATED uint64_t GWEN_IdList64_GetFirstId | ( | GWEN_IDLIST64 * | idl | ) |
Definition at line 341 of file idlist64.c.
References GWEN_IdTable64_GetFirstId().
GWENHYWFAR_API DEPRECATED uint64_t GWEN_IdList64_GetFirstId2 | ( | const GWEN_IDLIST64 * | idl, | |
uint64_t * | hdl | |||
) |
Definition at line 509 of file idlist64.c.
References GWEN_IdTable64_GetFirstId2().
GWENHYWFAR_API DEPRECATED uint64_t GWEN_IdList64_GetNextId | ( | GWEN_IDLIST64 * | idl | ) |
Definition at line 366 of file idlist64.c.
References GWEN_IdTable64_GetFirstId(), and GWEN_IdTable64_GetNextId().
GWENHYWFAR_API DEPRECATED uint64_t GWEN_IdList64_GetNextId2 | ( | const GWEN_IDLIST64 * | idl, | |
uint64_t * | hdl | |||
) |
Definition at line 538 of file idlist64.c.
References GWEN_IdTable64_GetNextId2().
GWENHYWFAR_API int GWEN_IdList64_HasId | ( | const GWEN_IDLIST64 * | idl, | |
uint64_t | id | |||
) |
Checks whether the given id exists in the idlist.
Definition at line 303 of file idlist64.c.
References GWEN_IdTable64_HasId().
GWENHYWFAR_API GWEN_IDLIST64* GWEN_IdList64_new | ( | ) |
Constructor.
Definition at line 224 of file idlist64.c.
References GWEN_NEW_OBJECT.
Referenced by GWEN_IdList64_dup().
GWENHYWFAR_API int GWEN_IdList64_Sort | ( | GWEN_IDLIST64 * | idl | ) |
Sorts the ids in ascending order
Definition at line 401 of file idlist64.c.
References GWEN_IdList64_AddId(), GWEN_IdList64_Iterator_free(), GWEN_IdList64_Iterator_GetFirstId(), GWEN_IdList64_Iterator_GetNextId(), GWEN_IdList64_Iterator_new(), and GWEN_IdTable64_GetCount().