gwenhywfar  5.1.3
Functions
ID list module

A list of uint64_t objects. More...

Functions

GWENHYWFAR_API int64_t GWEN_IdList64_AddId (GWEN_IDLIST64 *idl, uint64_t id)
 
GWENHYWFAR_API int GWEN_IdList64_AddTests (GWEN_TEST_MODULE *mod)
 
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 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)
 

Detailed Description

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.

Function Documentation

◆ GWEN_IdList64_AddId()

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.

◆ GWEN_IdList64_AddTests()

GWENHYWFAR_API int GWEN_IdList64_AddTests ( GWEN_TEST_MODULE mod)

◆ GWEN_IdList64_Attach()

GWENHYWFAR_API void GWEN_IdList64_Attach ( GWEN_IDLIST64 idl)

◆ GWEN_IdList64_Clear()

GWENHYWFAR_API void GWEN_IdList64_Clear ( GWEN_IDLIST64 idl)

◆ 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

◆ GWEN_IdList64_dup()

GWENHYWFAR_API GWEN_IDLIST64* GWEN_IdList64_dup ( const GWEN_IDLIST64 oldList)

◆ GWEN_IdList64_free()

GWENHYWFAR_API void GWEN_IdList64_free ( GWEN_IDLIST64 idl)

◆ GWEN_IdList64_GetEntryCount()

GWENHYWFAR_API uint64_t GWEN_IdList64_GetEntryCount ( const GWEN_IDLIST64 idl)

◆ 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

◆ GWEN_IdList64_LazyCopy()

GWENHYWFAR_API GWEN_IDLIST64* GWEN_IdList64_LazyCopy ( GWEN_IDLIST64 oldList)

◆ GWEN_IdList64_new()

GWENHYWFAR_API GWEN_IDLIST64* GWEN_IdList64_new ( void  )

◆ GWEN_IdList64_newWithSteps()

GWENHYWFAR_API GWEN_IDLIST64* GWEN_IdList64_newWithSteps ( uint64_t  steps)

◆ GWEN_IdList64_ReverseSort()

GWENHYWFAR_API int GWEN_IdList64_ReverseSort ( GWEN_IDLIST64 idl)

◆ GWEN_IdList64_Sort()

GWENHYWFAR_API int GWEN_IdList64_Sort ( GWEN_IDLIST64 idl)

Sorts the ids in ascending order