tesseract
5.0.0-alpha-619-ge9db
|
Go to the source code of this file.
Classes | |
struct | list_rec |
Macros | |
#define | NIL_LIST static_cast<LIST>(nullptr) |
#define | list_rest(l) ((l) ? (l)->next : NIL_LIST) |
#define | first_node(l) ((l) ? (l)->node : NIL_LIST) |
#define | iterate(l) for (; (l) != NIL_LIST; (l) = list_rest(l)) |
#define | set_rest(l, cell) ((l)->next = (cell)) |
Typedefs | |
using | int_compare = int(*)(void *, void *) |
using | void_dest = void(*)(void *) |
using | LIST = list_rec * |
Functions | |
int | count (LIST var_list) |
LIST | delete_d (LIST list, void *key, int_compare is_equal) |
LIST | destroy (LIST list) |
void | destroy_nodes (LIST list, void_dest destructor) |
LIST | last (LIST var_list) |
LIST | pop (LIST list) |
LIST | push (LIST list, void *element) |
LIST | push_last (LIST list, void *item) |
LIST | search (LIST list, void *key, int_compare is_equal) |
using int_compare = int (*)(void*, void*) |
int count | ( | LIST | var_list | ) |
Definition at line 79 of file oldlist.cpp.
LIST delete_d | ( | LIST | list, |
void * | key, | ||
int_compare | is_equal | ||
) |
Definition at line 93 of file oldlist.cpp.
Definition at line 123 of file oldlist.cpp.
Definition at line 138 of file oldlist.cpp.
Definition at line 151 of file oldlist.cpp.
Definition at line 161 of file oldlist.cpp.
Definition at line 172 of file oldlist.cpp.
Definition at line 185 of file oldlist.cpp.
LIST search | ( | LIST | list, |
void * | key, | ||
int_compare | is_equal | ||
) |
Definition at line 202 of file oldlist.cpp.