gwenhywfar  4.99.8beta
Macros | Functions
idlist64.c File Reference
#include "idlist64_p.h"
#include <gwenhywfar/debug.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
Include dependency graph for idlist64.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 

Functions

static int __compAscending (const void *pa, const void *pb)
 
static int __compDescending (const void *pa, const void *pb)
 
uint64_t GWEN_IdList64__GetFirstId (const GWEN_IDLIST64 *idl, uint64_t *pos)
 
uint64_t GWEN_IdList64__GetNextId (const GWEN_IDLIST64 *idl, uint64_t *pos)
 
static int GWEN_IdList64__Sort (GWEN_IDLIST64 *idl, int ascending)
 
int GWEN_IdList64_AddId (GWEN_IDLIST64 *idl, uint64_t id)
 
void GWEN_IdList64_AddTable (GWEN_IDLIST64 *idl, GWEN_IDTABLE64 *idt)
 
int GWEN_IdList64_AppendId (GWEN_IDLIST64 *idl, uint64_t id)
 
void GWEN_IdList64_Attach (GWEN_IDLIST64 *idl)
 
void GWEN_IdList64_Clean (GWEN_IDLIST64 *idl)
 
void GWEN_IdList64_Clear (GWEN_IDLIST64 *idl)
 
int GWEN_IdList64_DelId (GWEN_IDLIST64 *idl, uint64_t id)
 
GWEN_IDLIST64GWEN_IdList64_dup (const GWEN_IDLIST64 *idl)
 
void GWEN_IdList64_free (GWEN_IDLIST64 *idl)
 
uint64_t GWEN_IdList64_GetEntryCount (const GWEN_IDLIST64 *idl)
 
uint64_t GWEN_IdList64_GetFirstId (GWEN_IDLIST64 *idl)
 
uint64_t GWEN_IdList64_GetFirstId2 (const GWEN_IDLIST64 *idl, uint64_t *pos)
 
uint64_t GWEN_IdList64_GetIdAt (const GWEN_IDLIST64 *idl, uint64_t idx)
 
uint64_t GWEN_IdList64_GetNextId (GWEN_IDLIST64 *idl)
 
uint64_t GWEN_IdList64_GetNextId2 (const GWEN_IDLIST64 *idl, uint64_t *pos)
 
int GWEN_IdList64_HasId (const GWEN_IDLIST64 *idl, uint64_t id)
 
void GWEN_IdList64_Iterator_free (GWEN_IDLIST64_ITERATOR *it)
 
uint64_t GWEN_IdList64_Iterator_GetFirstId (GWEN_IDLIST64_ITERATOR *it)
 
uint64_t GWEN_IdList64_Iterator_GetNextId (GWEN_IDLIST64_ITERATOR *it)
 
GWEN_IDLIST64_ITERATORGWEN_IdList64_Iterator_new (GWEN_IDLIST64 *idl)
 
GWEN_IDLIST64GWEN_IdList64_new (void)
 
int GWEN_IdList64_ReverseSort (GWEN_IDLIST64 *idl)
 
int GWEN_IdList64_Sort (GWEN_IDLIST64 *idl)
 
static int GWEN_IdTable64_AddId (GWEN_IDTABLE64 *idt, uint64_t id)
 
static int GWEN_IdTable64_AppendId (GWEN_IDTABLE64 *idt, uint64_t id)
 
static int GWEN_IdTable64_DelId (GWEN_IDTABLE64 *idt, uint64_t id)
 
void GWEN_IdTable64_free (GWEN_IDTABLE64 *idt)
 
static int GWEN_IdTable64_HasId (const GWEN_IDTABLE64 *idt, uint64_t id)
 
static int GWEN_IdTable64_IsEmpty (const GWEN_IDTABLE64 *idt)
 
static int GWEN_IdTable64_IsFull (const GWEN_IDTABLE64 *idt)
 
GWEN_IDTABLE64 * GWEN_IdTable64_new (void)
 

Macro Definition Documentation

#define DISABLE_DEBUGLOG

Definition at line 31 of file idlist64.c.

Function Documentation

static int __compAscending ( const void *  pa,
const void *  pb 
)
static

Definition at line 427 of file idlist64.c.

Referenced by GWEN_IdList64__Sort().

Here is the caller graph for this function:

static int __compDescending ( const void *  pa,
const void *  pb 
)
static

Definition at line 441 of file idlist64.c.

Referenced by GWEN_IdList64__Sort().

Here is the caller graph for this function:

uint64_t GWEN_IdList64__GetFirstId ( const GWEN_IDLIST64 idl,
uint64_t *  pos 
)

Definition at line 555 of file idlist64.c.

References GWEN_IdTable64_IsEmpty(), and NULL.

Referenced by GWEN_IdList64_GetFirstId(), GWEN_IdList64_GetFirstId2(), and GWEN_IdList64_Iterator_GetFirstId().

Here is the call graph for this function:

Here is the caller graph for this function:

uint64_t GWEN_IdList64__GetNextId ( const GWEN_IDLIST64 idl,
uint64_t *  pos 
)

Definition at line 584 of file idlist64.c.

References DBG_ERROR, GWEN_IdTable64_IsEmpty(), and GWEN_LOGDOMAIN.

Referenced by GWEN_IdList64_GetNextId(), GWEN_IdList64_GetNextId2(), and GWEN_IdList64_Iterator_GetNextId().

Here is the call graph for this function:

Here is the caller graph for this function:

static int GWEN_IdList64__Sort ( GWEN_IDLIST64 idl,
int  ascending 
)
static
void GWEN_IdList64_AddTable ( GWEN_IDLIST64 idl,
GWEN_IDTABLE64 *  idt 
)

Definition at line 256 of file idlist64.c.

References NULL.

Referenced by GWEN_IdList64_AddId(), GWEN_IdList64_AppendId(), and GWEN_IdList64_dup().

Here is the caller graph for this function:

void GWEN_IdList64_Clean ( GWEN_IDLIST64 idl)

Definition at line 389 of file idlist64.c.

References GWEN_IdTable64_free(), GWEN_IdTable64_IsEmpty(), and NULL.

Referenced by GWEN_IdList64_DelId().

Here is the call graph for this function:

Here is the caller graph for this function:

static int GWEN_IdTable64_AddId ( GWEN_IDTABLE64 *  idt,
uint64_t  id 
)
inlinestatic

Definition at line 83 of file idlist64.c.

Referenced by GWEN_IdList64_AddId().

Here is the caller graph for this function:

static int GWEN_IdTable64_AppendId ( GWEN_IDTABLE64 *  idt,
uint64_t  id 
)
inlinestatic

Definition at line 98 of file idlist64.c.

Referenced by GWEN_IdList64_AppendId().

Here is the caller graph for this function:

static int GWEN_IdTable64_DelId ( GWEN_IDTABLE64 *  idt,
uint64_t  id 
)
inlinestatic

Definition at line 126 of file idlist64.c.

Referenced by GWEN_IdList64_DelId().

Here is the caller graph for this function:

void GWEN_IdTable64_free ( GWEN_IDTABLE64 *  idt)

Definition at line 62 of file idlist64.c.

References GWEN_FREE_OBJECT.

Referenced by GWEN_IdList64_Clean(), and GWEN_IdList64_Clear().

Here is the caller graph for this function:

static int GWEN_IdTable64_HasId ( const GWEN_IDTABLE64 *  idt,
uint64_t  id 
)
inlinestatic

Definition at line 113 of file idlist64.c.

Referenced by GWEN_IdList64_HasId().

Here is the caller graph for this function:

static int GWEN_IdTable64_IsEmpty ( const GWEN_IDTABLE64 *  idt)
inlinestatic

Definition at line 141 of file idlist64.c.

Referenced by GWEN_IdList64__GetFirstId(), GWEN_IdList64__GetNextId(), GWEN_IdList64_Clean(), and GWEN_IdList64_dup().

Here is the caller graph for this function:

static int GWEN_IdTable64_IsFull ( const GWEN_IDTABLE64 *  idt)
inlinestatic

Definition at line 147 of file idlist64.c.

Referenced by GWEN_IdList64_AddId(), and GWEN_IdList64_AppendId().

Here is the caller graph for this function:

GWEN_IDTABLE64* GWEN_IdTable64_new ( void  )

Definition at line 50 of file idlist64.c.

References GWEN_NEW_OBJECT.

Referenced by GWEN_IdList64_AddId(), GWEN_IdList64_AppendId(), and GWEN_IdList64_dup().

Here is the caller graph for this function: