#include <stdio.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | ArrayList |
struct | tagLinkedListItem |
struct | tagVector |
Typedefs | |
typedef void(* | freefunc )(void *) |
typedef ArrayList * | pArrayList |
typedef struct tagLinkedListItem * | pLinkedListItem |
typedef struct tagLinkedListItem | LinkedListItem |
typedef struct tagVector * | pVector |
typedef struct tagVector | Vector |
typedef Vector | Stack |
typedef pVector | pStack |
Functions | |
pArrayList | arraylist_new (int step) |
pArrayList | arraylist_add (pArrayList pal, void *data) |
void * | arraylist_get (pArrayList pal, int idx) |
void | arraylist_free (pArrayList pal, freefunc datafree) |
void | arraylist_trim (pArrayList pal) |
void | arraylist_clear (pArrayList pal) |
void | arraylist_sort (pArrayList pal, int(*compar)(const void *, const void *)) |
void | arraylist_shuffle (pArrayList pal) |
pLinkedListItem | linkedlistitem_new (void *data) |
void | linkedlistitem_free (pLinkedListItem pitem) |
pVector | vector_new () |
void | vector_free (pVector pvec, freefunc func) |
void | vector_add (pVector pvec, void *data) |
void * | vector_get (pVector pvec, int idx) |
void | vector_rewind (pVector pvec) |
void * | vector_next (pVector pvec) |
void | vector_sort (pVector pvec, int(*cmp)(const void *, const void *)) |
void * | vector_get_by_cmp (pVector pvec, void *data, size_t(*cmp)(const void *, const void *)) |
void | vector_remove_by_data (pVector pvec, void *data) |
void | vector_dereference_by_data (pVector pvec, void *data) |
pArrayList | vector_to_arraylist (pVector pvec) |
pStack | stack_new () |
void | stack_free (pStack pstack) |
void | stack_push (pStack pstack, void *data) |
void * | stack_pop (pStack pstack) |
int | stack_has_items (pStack pstack) |
void | print_error (char *file, char *function, int line, char *message,...) |
int | __cmp_int (const void *a, const void *b) |
int | __cmp_double (const void *a, const void *b) |
typedef void(* freefunc)(void *) |
typedef struct tagLinkedListItem LinkedListItem |
typedef ArrayList* pArrayList |
typedef struct tagLinkedListItem* pLinkedListItem |
int __cmp_double | ( | const void * | a, |
const void * | b | ||
) |
int __cmp_int | ( | const void * | a, |
const void * | b | ||
) |
pArrayList arraylist_add | ( | pArrayList | pal, |
void * | data | ||
) |
void arraylist_clear | ( | pArrayList | pal | ) |
void arraylist_free | ( | pArrayList | pal, |
freefunc | datafree | ||
) |
void* arraylist_get | ( | pArrayList | pal, |
int | idx | ||
) |
pArrayList arraylist_new | ( | int | step | ) |
void arraylist_shuffle | ( | pArrayList | pal | ) |
void arraylist_sort | ( | pArrayList | pal, |
int(*)(const void *, const void *) | compar | ||
) |
void arraylist_trim | ( | pArrayList | pal | ) |
void linkedlistitem_free | ( | pLinkedListItem | pitem | ) |
pLinkedListItem linkedlistitem_new | ( | void * | data | ) |
void print_error | ( | char * | file, |
char * | function, | ||
int | line, | ||
char * | message, | ||
... | |||
) |
void stack_free | ( | pStack | pstack | ) |
int stack_has_items | ( | pStack | pstack | ) |
pStack stack_new | ( | ) |
void* stack_pop | ( | pStack | pstack | ) |
void stack_push | ( | pStack | pstack, |
void * | data | ||
) |
void vector_add | ( | pVector | pvec, |
void * | data | ||
) |
void vector_dereference_by_data | ( | pVector | pvec, |
void * | data | ||
) |
void* vector_get | ( | pVector | pvec, |
int | idx | ||
) |
void* vector_get_by_cmp | ( | pVector | pvec, |
void * | data, | ||
size_t(*)(const void *, const void *) | cmp | ||
) |
pVector vector_new | ( | ) |
void* vector_next | ( | pVector | pvec | ) |
void vector_remove_by_data | ( | pVector | pvec, |
void * | data | ||
) |
void vector_rewind | ( | pVector | pvec | ) |
void vector_sort | ( | pVector | pvec, |
int(*)(const void *, const void *) | cmp | ||
) |
pArrayList vector_to_arraylist | ( | pVector | pvec | ) |