|
gwenhywfar 5.12.0
|
#include "idlist64_p.h"#include <gwenhywfar/memory.h>#include <gwenhywfar/debug.h>#include <stdlib.h>#include <assert.h>#include "idlist64-t.c"
Go to the source code of this file.
Macros | |
| #define | DISABLE_DEBUGLOG |
| #define DISABLE_DEBUGLOG |
Definition at line 29 of file idlist64.c.
|
static |
Definition at line 688 of file idlist64.c.
Referenced by GWEN_IdList64__Sort().

|
static |
Definition at line 703 of file idlist64.c.
Referenced by GWEN_IdList64__Sort().

|
static |
References GWENHYWFAR_CB.
Referenced by GWEN_IdList64_newWithSteps().

|
static |
Definition at line 513 of file idlist64.c.
References GWEN_IdTable64_Attach(), GWEN_UNUSED, and GWENHYWFAR_CB.

|
static |
References GWENHYWFAR_CB.
Referenced by GWEN_IdList64_newWithSteps().

|
static |
Definition at line 523 of file idlist64.c.
References GWEN_IdTable64_free(), GWEN_UNUSED, and GWENHYWFAR_CB.

|
static |
Definition at line 533 of file idlist64.c.
References GWEN_IdList64_GetTableAt(), GWEN_IdList64_GetTableMaxEntries(), and GWEN_IdList64_GetUsedTables().
Referenced by GWEN_IdList64_Iterator_GetFirstId().


|
static |
Definition at line 565 of file idlist64.c.
References DBG_ERROR, GWEN_IdList64_GetTableAt(), GWEN_IdList64_GetTableMaxEntries(), GWEN_IdList64_GetUsedTables(), and GWEN_LOGDOMAIN.
Referenced by GWEN_IdList64_Iterator_GetNextId().


|
static |
Definition at line 623 of file idlist64.c.
References __compAscending(), __compDescending(), GWEN_IdList64_AddId(), GWEN_IdList64_Clear(), GWEN_IdList64_GetEntryCount(), GWEN_IdList64_Iterator_free(), GWEN_IdList64_Iterator_GetFirstId(), GWEN_IdList64_Iterator_GetNextId(), and GWEN_IdList64_Iterator_new().
Referenced by GWEN_IdList64_ReverseSort(), and GWEN_IdList64_Sort().


| 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().


|
static |
Definition at line 218 of file idlist64.c.
References GWEN_SimplePtrList_AddPtr().
Referenced by GWEN_IdList64_AddId(), and GWEN_IdList64_dup().


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

| 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().


| int GWEN_IdList64_DecIdCounter | ( | GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 175 of file idlist64.c.
References GWEN_SimplePtrList_DecUserCounter().
Referenced by GWEN_IdList64_DelId().


| 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().

| 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.

| 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().


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


| int64_t GWEN_IdList64_GetIdAt | ( | const GWEN_IDLIST64 * | idl, |
| uint64_t | idx ) |
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().

| int64_t GWEN_IdList64_GetLastTablePos | ( | const GWEN_IDLIST64 * | idl | ) |
Definition at line 232 of file idlist64.c.
References GWEN_ERROR_NO_DATA, and GWEN_SimplePtrList_GetUsedEntries().
Referenced by GWEN_IdList64_AddId().


|
static |
Definition at line 204 of file idlist64.c.
References GWEN_SimplePtrList_GetPtrAt().
Referenced by GWEN_IdList64__GetFirstId(), GWEN_IdList64__GetNextId(), GWEN_IdList64_AddId(), GWEN_IdList64_DelId(), GWEN_IdList64_dup(), GWEN_IdList64_GetIdAt(), and GWEN_IdList64_HasId().


| int GWEN_IdList64_GetTableMaxEntries | ( | const GWEN_IDLIST64 * | idl | ) |
Definition at line 190 of file idlist64.c.
References GWEN_SimplePtrList_GetUserIntData().
Referenced by GWEN_IdList64__GetFirstId(), GWEN_IdList64__GetNextId(), GWEN_IdList64_AddId(), GWEN_IdList64_DelId(), and GWEN_IdList64_HasId().


| uint64_t GWEN_IdList64_GetUsedTables | ( | const GWEN_IDLIST64 * | idl | ) |
Definition at line 225 of file idlist64.c.
References GWEN_SimplePtrList_GetUsedEntries().
Referenced by GWEN_IdList64__GetFirstId(), GWEN_IdList64__GetNextId(), GWEN_IdList64_DelId(), and GWEN_IdList64_HasId().


| 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().

| void GWEN_IdList64_IncIdCounter | ( | GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 168 of file idlist64.c.
References GWEN_SimplePtrList_IncUserCounter().
Referenced by GWEN_IdList64_AddId().


| void GWEN_IdList64_Iterator_free | ( | GWEN_IDLIST64_ITERATOR * | it | ) |
Definition at line 742 of file idlist64.c.
References GWEN_FREE_OBJECT.
Referenced by GWEN_IdList64__Sort().

| uint64_t GWEN_IdList64_Iterator_GetFirstId | ( | GWEN_IDLIST64_ITERATOR * | it | ) |
Definition at line 751 of file idlist64.c.
References GWEN_IdList64__GetFirstId().
Referenced by GWEN_IdList64__Sort().


| uint64_t GWEN_IdList64_Iterator_GetNextId | ( | GWEN_IDLIST64_ITERATOR * | it | ) |
Definition at line 758 of file idlist64.c.
References GWEN_IdList64__GetNextId().
Referenced by GWEN_IdList64__Sort().


| GWEN_IDLIST64_ITERATOR * GWEN_IdList64_Iterator_new | ( | const GWEN_IDLIST64 * | idl | ) |
Definition at line 728 of file idlist64.c.
References GWEN_NEW_OBJECT.
Referenced by GWEN_IdList64__Sort().

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

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


| 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().


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

| int GWEN_IdList64_SetTableAt | ( | GWEN_IDLIST64 * | idl, |
| uint64_t | idx, | ||
| GWEN_IDTABLE64 * | t ) |
Definition at line 211 of file idlist64.c.
References GWEN_SimplePtrList_SetPtrAt().
Referenced by GWEN_IdList64_AddId().


| 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().

|
static |
Definition at line 946 of file idlist64.c.
Referenced by GWEN_IdList64_AddId().

|
static |
Definition at line 787 of file idlist64.c.
Referenced by _attachToTable().

|
static |
Definition at line 908 of file idlist64.c.
Referenced by GWEN_IdList64_AddId().

|
static |
Definition at line 849 of file idlist64.c.
References GWEN_IdTable64_new(), and GWEN_IdTable64_SetPtrEntries().
Referenced by GWEN_IdList64_AddId().


|
static |
Definition at line 889 of file idlist64.c.
Referenced by GWEN_IdList64_AddId().

|
static |
Definition at line 822 of file idlist64.c.
References GWEN_IdTable64_new().
Referenced by GWEN_IdList64_AddId(), and GWEN_IdList64_dup().


|
static |
Definition at line 797 of file idlist64.c.
References GWEN_FREE_OBJECT.
Referenced by _detachFromTable(), GWEN_IdList64_AddId(), and GWEN_IdList64_dup().

|
static |
Definition at line 880 of file idlist64.c.
Referenced by GWEN_IdList64_AddId().

|
static |
Definition at line 899 of file idlist64.c.
Referenced by GWEN_IdList64_AddId().

|
static |
Definition at line 871 of file idlist64.c.
Referenced by GWEN_IdList64_AddId().

|
static |
Definition at line 918 of file idlist64.c.
Referenced by GWEN_IdList64_AddId(), and GWEN_IdList64_GetIdAt().

| int GWEN_IdTable64_GetRefCounter | ( | const GWEN_IDTABLE64 * | ft | ) |
Definition at line 814 of file idlist64.c.
|
static |
Definition at line 938 of file idlist64.c.
Referenced by GWEN_IdList64_AddId().

|
static |
Definition at line 775 of file idlist64.c.
References GWEN_NEW_OBJECT.
Referenced by GWEN_IdTable64_Create(), and GWEN_IdTable64_dup().

|
static |
Definition at line 927 of file idlist64.c.
Referenced by GWEN_IdTable64_Create().
