gwenhywfar  4.99.15beta
Functions
ID list module

A list of uint64_t objects. More...

Collaboration diagram for ID list module:

Functions

GWENHYWFAR_API int GWEN_IdList64_AddId (GWEN_IDLIST64 *idl, uint64_t id)
 
GWENHYWFAR_API int GWEN_IdList64_AppendId (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 *idl)
 
GWENHYWFAR_API void GWEN_IdList64_free (GWEN_IDLIST64 *idl)
 
GWENHYWFAR_API uint64_t GWEN_IdList64_GetEntryCount (const GWEN_IDLIST64 *idl)
 
GWENHYWFAR_API DEPRECATED uint64_t GWEN_IdList64_GetFirstId (GWEN_IDLIST64 *idl)
 
GWENHYWFAR_API DEPRECATED uint64_t GWEN_IdList64_GetFirstId2 (const GWEN_IDLIST64 *idl, uint64_t *hdl)
 
GWENHYWFAR_API uint64_t GWEN_IdList64_GetIdAt (const GWEN_IDLIST64 *idl, uint64_t index)
 
GWENHYWFAR_API DEPRECATED uint64_t GWEN_IdList64_GetNextId (GWEN_IDLIST64 *idl)
 
GWENHYWFAR_API DEPRECATED uint64_t GWEN_IdList64_GetNextId2 (const GWEN_IDLIST64 *idl, uint64_t *hdl)
 
GWENHYWFAR_API int GWEN_IdList64_HasId (const GWEN_IDLIST64 *idl, uint64_t id)
 
GWENHYWFAR_API GWEN_IDLIST64GWEN_IdList64_new (void)
 
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 int GWEN_IdList64_AddId ( GWEN_IDLIST64 idl,
uint64_t  id 
)

Adds an id to the list. This function does no doublecheck.

Definition at line 311 of file idlist64.c.

References GWEN_IdList64_AddTable(), GWEN_IdTable64_AddId(), GWEN_IdTable64_IsFull(), GWEN_IdTable64_new(), and NULL.

Referenced by GWEN_IdList64__Sort().

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

◆ GWEN_IdList64_AppendId()

GWENHYWFAR_API int GWEN_IdList64_AppendId ( GWEN_IDLIST64 idl,
uint64_t  id 
)

Always append id at the end of the list.

Definition at line 739 of file idlist64.c.

References GWEN_IdList64_AddTable(), GWEN_IdTable64_AppendId(), GWEN_IdTable64_IsFull(), GWEN_IdTable64_new(), and NULL.

Here is the call graph for this function:

◆ GWEN_IdList64_Attach()

GWENHYWFAR_API void GWEN_IdList64_Attach ( GWEN_IDLIST64 idl)

Definition at line 248 of file idlist64.c.

Referenced by GWEN_IdList64_Iterator_new().

Here is the caller graph for this function:

◆ GWEN_IdList64_Clear()

GWENHYWFAR_API void GWEN_IdList64_Clear ( GWEN_IDLIST64 idl)

Removes all ids from the list thus leaving it empty.

Definition at line 427 of file idlist64.c.

References GWEN_IdTable64_free(), and NULL.

Referenced by GWEN_IdList64__Sort(), and GWEN_IdList64_free().

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 368 of file idlist64.c.

References GWEN_IdList64_Clean(), GWEN_IdTable64_DelId(), and NULL.

Here is the call graph for this function:

◆ GWEN_IdList64_dup()

GWENHYWFAR_API GWEN_IDLIST64* GWEN_IdList64_dup ( const GWEN_IDLIST64 idl)

Returns a new id list which contains all the ids of the given list in the same order. However, the list returned might be more is compact (i.e. it has fewer wholes), so the positions of ids within the list might have changed!.

Definition at line 545 of file idlist64.c.

References GWEN_IdList64_AddTable(), GWEN_IdList64_new(), GWEN_IdTable64_IsEmpty(), and GWEN_IdTable64_new().

Here is the call graph for this function:

◆ GWEN_IdList64_free()

GWENHYWFAR_API void GWEN_IdList64_free ( GWEN_IDLIST64 idl)

Destructor.

Definition at line 257 of file idlist64.c.

References GWEN_FREE_OBJECT, and GWEN_IdList64_Clear().

Referenced by GWEN_IdList64_Iterator_free().

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 575 of file idlist64.c.

◆ GWEN_IdList64_GetFirstId()

GWENHYWFAR_API DEPRECATED uint64_t GWEN_IdList64_GetFirstId ( GWEN_IDLIST64 idl)
Deprecated:
This function is deprecated, please use GWEN_IdList64_Iterator_new instead.

Definition at line 668 of file idlist64.c.

References GWEN_IdList64__GetFirstId().

Here is the call graph for this function:

◆ GWEN_IdList64_GetFirstId2()

GWENHYWFAR_API DEPRECATED uint64_t GWEN_IdList64_GetFirstId2 ( const GWEN_IDLIST64 idl,
uint64_t *  hdl 
)
Deprecated:
This function is deprecated, please use GWEN_IdList64_Iterator_new instead.

Definition at line 682 of file idlist64.c.

References GWEN_IdList64__GetFirstId().

Here is the call graph for this function:

◆ GWEN_IdList64_GetIdAt()

GWENHYWFAR_API uint64_t GWEN_IdList64_GetIdAt ( const GWEN_IDLIST64 idl,
uint64_t  index 
)

Definition at line 767 of file idlist64.c.

References DBG_INFO, GWEN_LOGDOMAIN, and NULL.

◆ GWEN_IdList64_GetNextId()

GWENHYWFAR_API DEPRECATED uint64_t GWEN_IdList64_GetNextId ( GWEN_IDLIST64 idl)
Deprecated:
This function is deprecated, please use GWEN_IdList64_Iterator_new instead.

Definition at line 675 of file idlist64.c.

References GWEN_IdList64__GetNextId().

Here is the call graph for this function:

◆ GWEN_IdList64_GetNextId2()

GWENHYWFAR_API DEPRECATED uint64_t GWEN_IdList64_GetNextId2 ( const GWEN_IDLIST64 idl,
uint64_t *  hdl 
)
Deprecated:
This function is deprecated, please use GWEN_IdList64_Iterator_new instead.

Definition at line 689 of file idlist64.c.

References GWEN_IdList64__GetNextId().

Here is the call graph for this function:

◆ 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
0 if found, !=0 otherwise

Definition at line 391 of file idlist64.c.

References GWEN_IdTable64_HasId(), and NULL.

Here is the call graph for this function:

◆ GWEN_IdList64_new()

GWENHYWFAR_API GWEN_IDLIST64* GWEN_IdList64_new ( void  )

Constructor.

Definition at line 237 of file idlist64.c.

References GWEN_NEW_OBJECT.

Referenced by GWEN_IdList64_dup().

Here is the caller graph for this function:

◆ GWEN_IdList64_ReverseSort()

GWENHYWFAR_API int GWEN_IdList64_ReverseSort ( GWEN_IDLIST64 idl)

Definition at line 538 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 531 of file idlist64.c.

References GWEN_IdList64__Sort().

Here is the call graph for this function: