gwenhywfar 5.12.0
idlist64.h File Reference
#include <gwenhywfar/gwenhywfarapi.h>
#include <gwenhywfar/types.h>
#include <gwenhywfar/simpleptrlist.h>
Include dependency graph for idlist64.h:

Go to the source code of this file.

Typedefs

typedef GWEN_SIMPLEPTRLIST GWEN_IDLIST64
typedef struct GWEN_IDLIST64_ITERATOR GWEN_IDLIST64_ITERATOR

Functions

GWENHYWFAR_API int64_t 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_IDLIST64GWEN_IdList64_dup (const GWEN_IDLIST64 *oldList)
GWENHYWFAR_API void GWEN_IdList64_free (GWEN_IDLIST64 *idl)
GWENHYWFAR_API uint64_t GWEN_IdList64_GetEntryCount (const GWEN_IDLIST64 *idl)
GWENHYWFAR_API int64_t GWEN_IdList64_GetIdAt (const GWEN_IDLIST64 *idl, uint64_t index)
GWENHYWFAR_API int GWEN_IdList64_HasId (const GWEN_IDLIST64 *idl, uint64_t id)
GWENHYWFAR_API void GWEN_IdList64_Iterator_free (GWEN_IDLIST64_ITERATOR *it)
GWENHYWFAR_API uint64_t GWEN_IdList64_Iterator_GetFirstId (GWEN_IDLIST64_ITERATOR *it)
GWENHYWFAR_API uint64_t GWEN_IdList64_Iterator_GetNextId (GWEN_IDLIST64_ITERATOR *it)
GWENHYWFAR_API GWEN_IDLIST64_ITERATORGWEN_IdList64_Iterator_new (const GWEN_IDLIST64 *idl)
GWENHYWFAR_API GWEN_IDLIST64GWEN_IdList64_LazyCopy (GWEN_IDLIST64 *oldList)
GWENHYWFAR_API GWEN_IDLIST64GWEN_IdList64_new (void)
GWENHYWFAR_API GWEN_IDLIST64GWEN_IdList64_newWithSteps (uint64_t steps)
GWENHYWFAR_API int GWEN_IdList64_ReverseSort (GWEN_IDLIST64 *idl)
GWENHYWFAR_API int GWEN_IdList64_Sort (GWEN_IDLIST64 *idl)

Typedef Documentation

◆ GWEN_IDLIST64

Definition at line 42 of file idlist64.h.

◆ GWEN_IDLIST64_ITERATOR

Definition at line 43 of file idlist64.h.

Function Documentation

◆ GWEN_IdList64_AddId()

◆ GWEN_IdList64_Attach()

GWENHYWFAR_API void GWEN_IdList64_Attach ( GWEN_IDLIST64 * idl)

Definition at line 146 of file idlist64.c.

References GWEN_SimplePtrList_Attach().

Here is the call graph for this function:

◆ GWEN_IdList64_Clear()

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_IdList64_DelId()

GWENHYWFAR_API int GWEN_IdList64_DelId ( GWEN_IDLIST64 * idl,
uint64_t id )

Removes the first occurrence of the given id.

Returns
0 if deleted, !=0 if the id wasn't found

Definition at line 484 of file idlist64.c.

References GWEN_IdList64_DecIdCounter(), GWEN_IdList64_GetTableAt(), GWEN_IdList64_GetTableMaxEntries(), and GWEN_IdList64_GetUsedTables().

Here is the call graph for this function:

◆ GWEN_IdList64_dup()

◆ GWEN_IdList64_free()

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_IdList64_GetEntryCount()

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_IdList64_GetIdAt()

GWENHYWFAR_API int64_t GWEN_IdList64_GetIdAt ( const GWEN_IDLIST64 * idl,
uint64_t index )

◆ GWEN_IdList64_HasId()

GWENHYWFAR_API int GWEN_IdList64_HasId ( const GWEN_IDLIST64 * idl,
uint64_t id )

Checks whether the given id exists in the idlist.

Returns
1 if found, 0 otherwise

Definition at line 459 of file idlist64.c.

References GWEN_IdList64_GetTableAt(), GWEN_IdList64_GetTableMaxEntries(), and GWEN_IdList64_GetUsedTables().

Here is the call graph for this function:

◆ GWEN_IdList64_Iterator_free()

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

Here is the caller graph for this function:

◆ GWEN_IdList64_Iterator_GetFirstId()

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_IdList64_Iterator_GetNextId()

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_IdList64_Iterator_new()

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

Here is the caller graph for this function:

◆ GWEN_IdList64_LazyCopy()

GWENHYWFAR_API GWEN_IDLIST64 * GWEN_IdList64_LazyCopy ( GWEN_IDLIST64 * oldList)

Definition at line 197 of file idlist64.c.

References GWEN_SimplePtrList_LazyCopy().

Here is the call graph for this function:

◆ GWEN_IdList64_new()

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_IdList64_newWithSteps()

◆ GWEN_IdList64_ReverseSort()

GWENHYWFAR_API int GWEN_IdList64_ReverseSort ( GWEN_IDLIST64 * idl)

Definition at line 681 of file idlist64.c.

References GWEN_IdList64__Sort().

Here is the call graph for this function:

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

Here is the call graph for this function: