|
gwenhywfar
5.10.1
|
A list of uint64_t objects. More...
|
A list of uint64_t objects.
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 int64_t GWEN_IdList64_AddId | ( | GWEN_IDLIST64 * | idl, |
| uint64_t | id | ||
| ) |
Adds an id to the list, returns its index. This function does no doublecheck.
all entries are free, this is simple
Definition at line 335 of file idlist64.c.
References DBG_ERROR, DBG_INFO, DBG_VERBOUS, GWEN_ERROR_INTERNAL, GWEN_ERROR_INVALID, GWEN_IdList64_AddTable(), GWEN_IdList64_GetLastTablePos(), GWEN_IdList64_GetTableAt(), GWEN_IdList64_GetTableMaxEntries(), GWEN_IdList64_IncIdCounter(), GWEN_IdList64_SetTableAt(), GWEN_IdTable64_AddRuntimeFlags(), GWEN_IdTable64_CheckAndSetHighestEntry(), GWEN_IdTable64_Create(), GWEN_IdTable64_DecFreeEntries(), GWEN_IdTable64_dup(), GWEN_IdTable64_free(), GWEN_IdTable64_GetFreeEntries(), GWEN_IdTable64_GetHighestEntry(), GWEN_IdTable64_GetMaxEntries(), GWEN_IdTable64_GetPtrEntries(), GWEN_IdTable64_GetRuntimeFlags(), GWEN_LOGDOMAIN, GWEN_SimplePtrList_EnsureWritability(), and NULL.
Referenced by GWEN_IdList64__Sort(), and GWEN_MultiCache_Type_GetIdsInCache().


| GWENHYWFAR_API void GWEN_IdList64_Attach | ( | GWEN_IDLIST64 * | idl | ) |
Definition at line 146 of file idlist64.c.
References GWEN_SimplePtrList_Attach().

| GWENHYWFAR_API void GWEN_IdList64_Clear | ( | GWEN_IDLIST64 * | idl | ) |
Definition at line 160 of file idlist64.c.
References GWEN_SimplePtrList_Clear(), and GWEN_SimplePtrList_SetUserCounter().
Referenced by GWEN_IdList64__Sort().


| GWENHYWFAR_API int GWEN_IdList64_DelId | ( | GWEN_IDLIST64 * | idl, |
| uint64_t | id | ||
| ) |
Removes the first occurrence of the given id.
Definition at line 484 of file idlist64.c.
References GWEN_IdList64_DecIdCounter(), GWEN_IdList64_GetTableAt(), GWEN_IdList64_GetTableMaxEntries(), and GWEN_IdList64_GetUsedTables().

| GWENHYWFAR_API GWEN_IDLIST64* GWEN_IdList64_dup | ( | const GWEN_IDLIST64 * | oldList | ) |
Definition at line 111 of file idlist64.c.
References DBG_INFO, GWEN_IdList64_AddTable(), GWEN_IdList64_free(), GWEN_IdList64_GetTableAt(), GWEN_IdList64_newWithSteps(), GWEN_IdTable64_dup(), GWEN_IdTable64_free(), GWEN_LOGDOMAIN, GWEN_SimplePtrList_GetUsedEntries(), GWEN_SimplePtrList_GetUserCounter(), GWEN_SimplePtrList_GetUserIntData(), GWEN_SimplePtrList_SetUserCounter(), and NULL.

| GWENHYWFAR_API void GWEN_IdList64_free | ( | GWEN_IDLIST64 * | idl | ) |
Definition at line 153 of file idlist64.c.
References GWEN_SimplePtrList_free().
Referenced by GWEN_IdList64_dup(), and GWEN_MultiCache_Type_GetIdsInCache().


| GWENHYWFAR_API uint64_t GWEN_IdList64_GetEntryCount | ( | const GWEN_IDLIST64 * | idl | ) |
Definition at line 182 of file idlist64.c.
References GWEN_SimplePtrList_GetUserCounter().
Referenced by GWEN_IdList64__Sort(), and GWEN_MultiCache_Type_GetIdsInCache().


| GWENHYWFAR_API int64_t GWEN_IdList64_GetIdAt | ( | const GWEN_IDLIST64 * | idl, |
| uint64_t | index | ||
| ) |
Definition at line 244 of file idlist64.c.
References DBG_ERROR, GWEN_ERROR_BUFFER_OVERFLOW, GWEN_IdList64_GetTableAt(), GWEN_IdTable64_GetPtrEntries(), GWEN_LOGDOMAIN, and GWEN_SimplePtrList_GetUserIntData().

| 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 459 of file idlist64.c.
References GWEN_IdList64_GetTableAt(), GWEN_IdList64_GetTableMaxEntries(), and GWEN_IdList64_GetUsedTables().

| GWENHYWFAR_API GWEN_IDLIST64* GWEN_IdList64_LazyCopy | ( | GWEN_IDLIST64 * | oldList | ) |
Definition at line 197 of file idlist64.c.
References GWEN_SimplePtrList_LazyCopy().

| GWENHYWFAR_API GWEN_IDLIST64* GWEN_IdList64_new | ( | void | ) |
Definition at line 88 of file idlist64.c.
References GWEN_IdList64_newWithSteps().
Referenced by GWEN_MultiCache_Type_GetIdsInCache().


| GWENHYWFAR_API GWEN_IDLIST64* GWEN_IdList64_newWithSteps | ( | uint64_t | steps | ) |
Definition at line 95 of file idlist64.c.
References _attachToTable(), _detachFromTable(), GWEN_SimplePtrList_AddFlags(), GWEN_SIMPLEPTRLIST_FLAGS_ATTACHTOOBJECTS, GWEN_SIMPLEPTRLIST_FLAGS_DETACHFROMOBJECTS, GWEN_SimplePtrList_new(), GWEN_SimplePtrList_SetAttachObjectFn(), GWEN_SimplePtrList_SetFreeObjectFn(), and GWEN_SimplePtrList_SetUserIntData().
Referenced by GWEN_IdList64_dup(), and GWEN_IdList64_new().


| GWENHYWFAR_API int GWEN_IdList64_ReverseSort | ( | GWEN_IDLIST64 * | idl | ) |
Definition at line 681 of file idlist64.c.
References GWEN_IdList64__Sort().

| GWENHYWFAR_API int GWEN_IdList64_Sort | ( | GWEN_IDLIST64 * | idl | ) |
Sorts the ids in ascending order
Definition at line 674 of file idlist64.c.
References GWEN_IdList64__Sort().

1.8.14