TeoCCl library  0.1.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
list.c File Reference
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include "teoccl/memory.h"
#include "teoccl/list.h"

Macros

#define SIZE_T_MAX   ((size_t)-1)
 

Functions

ccl_list_tcclListInit (const size_t data_size)
 
int cclListCount (const ccl_list_t *dllist)
 
int cclListEmpty (const ccl_list_t *dllist)
 
iter_list_tcclListGetIter (const ccl_list_t *dllist)
 
iter_list_tcclListIterNext (iter_list_t *it)
 
void * cclListIterData (iter_list_t *it)
 
int cclListAddFirst (ccl_list_t *bllist, void *const data)
 
int cclListAddLast (ccl_list_t *bllist, void *const data)
 
int cclListAddAt (ccl_list_t *bllist, void *const data, const int idx)
 
int cclListGetFirst (ccl_list_t *bllist, void *const data)
 
int cclListGetLast (ccl_list_t *bllist, void *const data)
 
int cclListGetAt (ccl_list_t *bllist, const int idx, void *const data)
 
int cclListUpdateFirst (ccl_list_t *bllist, void *const data)
 
int cclListUpdateLast (ccl_list_t *bllist, void *const data)
 
int cclListUpdateAt (ccl_list_t *bllist, const int idx, void *const data)
 
int cclListRemoveFirst (ccl_list_t *bllist)
 
int cclListRemoveLast (ccl_list_t *bllist)
 
int cclListRemoveAt (ccl_list_t *bllist, const int idx)
 
void cclListClear (ccl_list_t *bllist)
 
void cclListDestroy (ccl_list_t *bllist)
 
void cclSortListAdd (ccl_list_t *bllist, void *data, int(*cmp)(const void *, const void *))
 

Macro Definition Documentation

#define SIZE_T_MAX   ((size_t)-1)

Function Documentation

int cclListAddAt ( ccl_list_t bllist,
void *const  data,
const int  idx 
)

References ccl_malloc().

Referenced by cclListAddFirst(), and cclListAddLast().

int cclListAddFirst ( ccl_list_t bllist,
void *const  data 
)

References cclListAddAt().

int cclListAddLast ( ccl_list_t bllist,
void *const  data 
)

References cclListAddAt().

void cclListClear ( ccl_list_t bllist)

Referenced by cclListDestroy().

int cclListCount ( const ccl_list_t dllist)

Referenced by cclListEmpty().

void cclListDestroy ( ccl_list_t bllist)

References cclListClear().

int cclListEmpty ( const ccl_list_t dllist)

References cclListCount().

int cclListGetAt ( ccl_list_t bllist,
const int  idx,
void *const  data 
)

Referenced by cclListGetFirst(), and cclListGetLast().

int cclListGetFirst ( ccl_list_t bllist,
void *const  data 
)

References cclListGetAt().

iter_list_t* cclListGetIter ( const ccl_list_t dllist)
int cclListGetLast ( ccl_list_t bllist,
void *const  data 
)

References cclListGetAt().

ccl_list_t* cclListInit ( const size_t  data_size)

References ccl_malloc().

void* cclListIterData ( iter_list_t it)
iter_list_t* cclListIterNext ( iter_list_t it)
int cclListRemoveAt ( ccl_list_t bllist,
const int  idx 
)
int cclListRemoveFirst ( ccl_list_t bllist)

References cclListRemoveAt().

int cclListRemoveLast ( ccl_list_t bllist)

References cclListRemoveAt().

int cclListUpdateAt ( ccl_list_t bllist,
const int  idx,
void *const  data 
)
int cclListUpdateFirst ( ccl_list_t bllist,
void *const  data 
)

References cclListUpdateAt().

int cclListUpdateLast ( ccl_list_t bllist,
void *const  data 
)

References cclListUpdateAt().

void cclSortListAdd ( ccl_list_t bllist,
void *  data,
int(*)(const void *, const void *)  cmp 
)