gwenhywfar  4.99.25rc9
Functions
idlist.c File Reference
#include "idlist_p.h"
#include <gwenhywfar/debug.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
Include dependency graph for idlist.c:

Go to the source code of this file.

Functions

int GWEN_IdList_AddId (GWEN_IDLIST *idl, uint32_t id)
 
void GWEN_IdList_Clean (GWEN_IDLIST *idl)
 
void GWEN_IdList_Clear (GWEN_IDLIST *idl)
 
int GWEN_IdList_DelId (GWEN_IDLIST *idl, uint32_t id)
 
GWEN_IDLISTGWEN_IdList_dup (const GWEN_IDLIST *idl)
 
void GWEN_IdList_free (GWEN_IDLIST *idl)
 
uint32_t GWEN_IdList_GetFirstId (GWEN_IDLIST *idl)
 
uint32_t GWEN_IdList_GetFirstId2 (const GWEN_IDLIST *idl, uint32_t *pos)
 
uint32_t GWEN_IdList_GetNextId (GWEN_IDLIST *idl)
 
uint32_t GWEN_IdList_GetNextId2 (const GWEN_IDLIST *idl, uint32_t *pos)
 
int GWEN_IdList_HasId (const GWEN_IDLIST *idl, uint32_t id)
 
GWEN_IDLISTGWEN_IdList_new (void)
 
int GWEN_IdList_Sort (GWEN_IDLIST *idl)
 
int GWEN_IdTable_AddId (GWEN_IDTABLE *idt, uint32_t id)
 
int GWEN_IdTable_DelId (GWEN_IDTABLE *idt, uint32_t id)
 
void GWEN_IdTable_free (GWEN_IDTABLE *idt)
 
unsigned int GWEN_IdTable_GetCount (const GWEN_IDTABLE *idt)
 
uint32_t GWEN_IdTable_GetFirstId (GWEN_IDTABLE *idt)
 
uint32_t GWEN_IdTable_GetFirstId2 (const GWEN_IDTABLE *idt, uint32_t *tabIdx)
 
uint32_t GWEN_IdTable_GetNextId (GWEN_IDTABLE *idt)
 
uint32_t GWEN_IdTable_GetNextId2 (const GWEN_IDTABLE *idt, uint32_t *tabIdx)
 
int GWEN_IdTable_HasId (const GWEN_IDTABLE *idt, uint32_t id)
 
int GWEN_IdTable_IsEmpty (const GWEN_IDTABLE *idt)
 
int GWEN_IdTable_IsFull (const GWEN_IDTABLE *idt)
 
GWEN_IDTABLE * GWEN_IdTable_new (void)
 

Function Documentation

◆ GWEN_IdList_Clean()

void GWEN_IdList_Clean ( GWEN_IDLIST idl)

Definition at line 313 of file idlist.c.

References GWEN_IdTable_free(), and GWEN_IdTable_IsEmpty().

Referenced by GWEN_IdList_DelId().

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

◆ GWEN_IdTable_AddId()

int GWEN_IdTable_AddId ( GWEN_IDTABLE *  idt,
uint32_t  id 
)

Definition at line 72 of file idlist.c.

Referenced by GWEN_IdList_AddId().

Here is the caller graph for this function:

◆ GWEN_IdTable_DelId()

int GWEN_IdTable_DelId ( GWEN_IDTABLE *  idt,
uint32_t  id 
)

Definition at line 108 of file idlist.c.

Referenced by GWEN_IdList_DelId().

Here is the caller graph for this function:

◆ GWEN_IdTable_free()

void GWEN_IdTable_free ( GWEN_IDTABLE *  idt)

Definition at line 62 of file idlist.c.

References GWEN_FREE_OBJECT, and GWEN_LIST_FINI.

Referenced by GWEN_IdList_Clean().

Here is the caller graph for this function:

◆ GWEN_IdTable_GetCount()

unsigned int GWEN_IdTable_GetCount ( const GWEN_IDTABLE *  idt)

Definition at line 143 of file idlist.c.

Referenced by GWEN_IdList_Sort().

Here is the caller graph for this function:

◆ GWEN_IdTable_GetFirstId()

uint32_t GWEN_IdTable_GetFirstId ( GWEN_IDTABLE *  idt)

Definition at line 151 of file idlist.c.

Referenced by GWEN_IdList_GetFirstId(), and GWEN_IdList_GetNextId().

Here is the caller graph for this function:

◆ GWEN_IdTable_GetFirstId2()

uint32_t GWEN_IdTable_GetFirstId2 ( const GWEN_IDTABLE *  idt,
uint32_t *  tabIdx 
)

Definition at line 186 of file idlist.c.

Referenced by GWEN_IdList_GetFirstId2().

Here is the caller graph for this function:

◆ GWEN_IdTable_GetNextId()

uint32_t GWEN_IdTable_GetNextId ( GWEN_IDTABLE *  idt)

Definition at line 168 of file idlist.c.

Referenced by GWEN_IdList_GetNextId().

Here is the caller graph for this function:

◆ GWEN_IdTable_GetNextId2()

uint32_t GWEN_IdTable_GetNextId2 ( const GWEN_IDTABLE *  idt,
uint32_t *  tabIdx 
)

Definition at line 203 of file idlist.c.

Referenced by GWEN_IdList_GetNextId2().

Here is the caller graph for this function:

◆ GWEN_IdTable_HasId()

int GWEN_IdTable_HasId ( const GWEN_IDTABLE *  idt,
uint32_t  id 
)

Definition at line 91 of file idlist.c.

Referenced by GWEN_IdList_HasId().

Here is the caller graph for this function:

◆ GWEN_IdTable_IsEmpty()

int GWEN_IdTable_IsEmpty ( const GWEN_IDTABLE *  idt)

Definition at line 127 of file idlist.c.

Referenced by GWEN_IdList_Clean().

Here is the caller graph for this function:

◆ GWEN_IdTable_IsFull()

int GWEN_IdTable_IsFull ( const GWEN_IDTABLE *  idt)

Definition at line 135 of file idlist.c.

Referenced by GWEN_IdList_AddId().

Here is the caller graph for this function:

◆ GWEN_IdTable_new()

GWEN_IDTABLE* GWEN_IdTable_new ( void  )

Definition at line 49 of file idlist.c.

References GWEN_LIST_INIT, and GWEN_NEW_OBJECT.

Referenced by GWEN_IdList_AddId().

Here is the caller graph for this function: