|
gwenhywfar 5.14.1
|
#include <gwenhywfar/types.h>#include <gwenhywfar/inherit.h>
Go to the source code of this file.
Macros | |
| #define | GWEN_SIMPLEPTRLIST_FLAGS_ATTACHTOOBJECTS 0x40000000L |
| #define | GWEN_SIMPLEPTRLIST_FLAGS_DETACHFROMOBJECTS 0x20000000L |
Typedefs | |
| typedef struct GWEN_SIMPLEPTRLIST | GWEN_SIMPLEPTRLIST |
| typedef GWENHYWFAR_CB void(* | GWEN_SIMPLEPTRLIST_ATTACHOBJECT_FN) (GWEN_SIMPLEPTRLIST *pl, void *p) |
| typedef GWENHYWFAR_CB void(* | GWEN_SIMPLEPTRLIST_FREEOBJECT_FN) (GWEN_SIMPLEPTRLIST *pl, void *p) |
| #define GWEN_SIMPLEPTRLIST_FLAGS_ATTACHTOOBJECTS 0x40000000L |
Definition at line 33 of file simpleptrlist.h.
Referenced by GWEN_IdList64_newWithSteps(), GWEN_SimplePtrList_AddPtr(), GWEN_SimplePtrList_EnsureWritability(), and GWEN_SimplePtrList_SetPtrAt().
| #define GWEN_SIMPLEPTRLIST_FLAGS_DETACHFROMOBJECTS 0x20000000L |
Definition at line 34 of file simpleptrlist.h.
Referenced by GWEN_IdList64_newWithSteps(), GWEN_SimplePtrList_Clear(), GWEN_SimplePtrList_free(), and GWEN_SimplePtrList_SetPtrAt().
| typedef struct GWEN_SIMPLEPTRLIST GWEN_SIMPLEPTRLIST |
Definition at line 38 of file simpleptrlist.h.
| typedef GWENHYWFAR_CB void(* GWEN_SIMPLEPTRLIST_ATTACHOBJECT_FN) (GWEN_SIMPLEPTRLIST *pl, void *p) |
Definition at line 43 of file simpleptrlist.h.
| typedef GWENHYWFAR_CB void(* GWEN_SIMPLEPTRLIST_FREEOBJECT_FN) (GWEN_SIMPLEPTRLIST *pl, void *p) |
Definition at line 44 of file simpleptrlist.h.
| GWENHYWFAR_API void GWEN_SimplePtrList_AddFlags | ( | GWEN_SIMPLEPTRLIST * | pl, |
| uint32_t | f ) |
Definition at line 384 of file simpleptrlist.c.
Referenced by GWEN_IdList64_newWithSteps().

| GWENHYWFAR_API int64_t GWEN_SimplePtrList_AddPtr | ( | GWEN_SIMPLEPTRLIST * | pl, |
| void * | p ) |
Definition at line 276 of file simpleptrlist.c.
References _attachToObject(), _reallocPtrList(), DBG_ERROR, DBG_INFO, GWEN_ERROR_MEMORY_FULL, GWEN_LOGDOMAIN, GWEN_SimplePtrList_EnsureWritability(), GWEN_SIMPLEPTRLIST_FLAGS_ATTACHTOOBJECTS, and NULL.
Referenced by GWEN_IdList64_AddTable().


| GWENHYWFAR_API void GWEN_SimplePtrList_Attach | ( | GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 113 of file simpleptrlist.c.
Referenced by GWEN_IdList64_Attach().

| GWENHYWFAR_API void GWEN_SimplePtrList_Clear | ( | GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 145 of file simpleptrlist.c.
References _detachFromAllObjects(), GWEN_SIMPLEPTRLIST_FLAGS_DETACHFROMOBJECTS, and NULL.
Referenced by GWEN_IdList64_Clear().


| GWENHYWFAR_API int GWEN_SimplePtrList_DecUserCounter | ( | GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 208 of file simpleptrlist.c.
References GWEN_ERROR_INVALID.
Referenced by GWEN_IdList64_DecIdCounter().

| GWENHYWFAR_API int GWEN_SimplePtrList_EnsureWritability | ( | GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 622 of file simpleptrlist.c.
References _attachToAllObjects(), _copyPtrList(), _freePtrList(), DBG_ERROR, DBG_VERBOUS, GWEN_ERROR_MEMORY_FULL, GWEN_LOGDOMAIN, GWEN_SIMPLEPTRLIST_FLAGS_ATTACHTOOBJECTS, and NULL.
Referenced by GWEN_IdList64_AddId(), GWEN_SimplePtrList_AddPtr(), and GWEN_SimplePtrList_SetPtrAt().


| GWENHYWFAR_API void GWEN_SimplePtrList_free | ( | GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 122 of file simpleptrlist.c.
References _detachFromAllObjects(), _freePtrList(), DBG_VERBOUS, GWEN_FREE_OBJECT, GWEN_INHERIT_FINI, GWEN_LOGDOMAIN, GWEN_SIMPLEPTRLIST_FLAGS_DETACHFROMOBJECTS, and NULL.
Referenced by GWEN_IdList64_free().


| GWENHYWFAR_API void * GWEN_SimplePtrList_GetEntries | ( | const GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 357 of file simpleptrlist.c.
| GWENHYWFAR_API uint32_t GWEN_SimplePtrList_GetFlags | ( | const GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 366 of file simpleptrlist.c.
| GWENHYWFAR_API uint64_t GWEN_SimplePtrList_GetMaxEntries | ( | const GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 339 of file simpleptrlist.c.
| GWENHYWFAR_API void * GWEN_SimplePtrList_GetPtrAt | ( | const GWEN_SIMPLEPTRLIST * | pl, |
| uint64_t | idx ) |
Definition at line 225 of file simpleptrlist.c.
References DBG_ERROR, GWEN_LOGDOMAIN, and NULL.
Referenced by GWEN_IdList64_GetTableAt().

| GWENHYWFAR_API uint64_t GWEN_SimplePtrList_GetSteps | ( | const GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 321 of file simpleptrlist.c.
| GWENHYWFAR_API uint64_t GWEN_SimplePtrList_GetUsedEntries | ( | const GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 348 of file simpleptrlist.c.
Referenced by GWEN_IdList64_dup(), GWEN_IdList64_GetLastTablePos(), and GWEN_IdList64_GetUsedTables().

| GWENHYWFAR_API uint64_t GWEN_SimplePtrList_GetUserCounter | ( | const GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 190 of file simpleptrlist.c.
Referenced by GWEN_IdList64_dup(), and GWEN_IdList64_GetEntryCount().

| GWENHYWFAR_API int GWEN_SimplePtrList_GetUserIntData | ( | const GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 163 of file simpleptrlist.c.
Referenced by GWEN_IdList64_dup(), GWEN_IdList64_GetIdAt(), and GWEN_IdList64_GetTableMaxEntries().

| GWENHYWFAR_API void GWEN_SimplePtrList_IncUserCounter | ( | GWEN_SIMPLEPTRLIST * | pl | ) |
Definition at line 199 of file simpleptrlist.c.
Referenced by GWEN_IdList64_IncIdCounter().

| GWENHYWFAR_API GWEN_SIMPLEPTRLIST * GWEN_SimplePtrList_LazyCopy | ( | GWEN_SIMPLEPTRLIST * | oldList | ) |
Definition at line 88 of file simpleptrlist.c.
References _attachToPtrList(), GWEN_INHERIT_INIT, and GWEN_NEW_OBJECT.
Referenced by GWEN_IdList64_LazyCopy().


| GWENHYWFAR_API GWEN_SIMPLEPTRLIST * GWEN_SimplePtrList_new | ( | uint64_t | startEntries, |
| uint64_t | steps ) |
Definition at line 71 of file simpleptrlist.c.
References _mallocPtrList(), GWEN_INHERIT_INIT, GWEN_NEW_OBJECT, and GWEN_SimplePtrList_new().
Referenced by GWEN_IdList64_newWithSteps(), and GWEN_SimplePtrList_new().


| GWENHYWFAR_API GWEN_SIMPLEPTRLIST_ATTACHOBJECT_FN GWEN_SimplePtrList_SetAttachObjectFn | ( | GWEN_SIMPLEPTRLIST * | pl, |
| GWEN_SIMPLEPTRLIST_ATTACHOBJECT_FN | fn ) |
Definition at line 402 of file simpleptrlist.c.
Referenced by GWEN_IdList64_newWithSteps().

| GWENHYWFAR_API void GWEN_SimplePtrList_SetFlags | ( | GWEN_SIMPLEPTRLIST * | pl, |
| uint32_t | f ) |
Definition at line 375 of file simpleptrlist.c.
| GWENHYWFAR_API GWEN_SIMPLEPTRLIST_FREEOBJECT_FN GWEN_SimplePtrList_SetFreeObjectFn | ( | GWEN_SIMPLEPTRLIST * | pl, |
| GWEN_SIMPLEPTRLIST_FREEOBJECT_FN | fn ) |
Definition at line 417 of file simpleptrlist.c.
Referenced by GWEN_IdList64_newWithSteps().

| GWENHYWFAR_API int GWEN_SimplePtrList_SetPtrAt | ( | GWEN_SIMPLEPTRLIST * | pl, |
| uint64_t | idx, | ||
| void * | p ) |
Definition at line 243 of file simpleptrlist.c.
References _attachToObject(), _detachFromObject(), DBG_ERROR, DBG_INFO, GWEN_ERROR_BUFFER_OVERFLOW, GWEN_LOGDOMAIN, GWEN_SimplePtrList_EnsureWritability(), GWEN_SIMPLEPTRLIST_FLAGS_ATTACHTOOBJECTS, and GWEN_SIMPLEPTRLIST_FLAGS_DETACHFROMOBJECTS.
Referenced by GWEN_IdList64_SetTableAt().


| GWENHYWFAR_API void GWEN_SimplePtrList_SetSteps | ( | GWEN_SIMPLEPTRLIST * | pl, |
| uint64_t | steps ) |
Definition at line 330 of file simpleptrlist.c.
| GWENHYWFAR_API void GWEN_SimplePtrList_SetUserCounter | ( | GWEN_SIMPLEPTRLIST * | pl, |
| uint64_t | i ) |
Definition at line 181 of file simpleptrlist.c.
Referenced by GWEN_IdList64_Clear(), and GWEN_IdList64_dup().

| GWENHYWFAR_API void GWEN_SimplePtrList_SetUserIntData | ( | GWEN_SIMPLEPTRLIST * | pl, |
| int | i ) |
Definition at line 172 of file simpleptrlist.c.
Referenced by GWEN_IdList64_newWithSteps().

| GWENHYWFAR_API void GWEN_SimplePtrList_SubFlags | ( | GWEN_SIMPLEPTRLIST * | pl, |
| uint32_t | f ) |
Definition at line 393 of file simpleptrlist.c.