tesseract 4.1.1
|
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) |
void | insert (LIST list, void *node) |
LIST | last (LIST var_list) |
LIST | pop (LIST list) |
LIST | push (LIST list, void *element) |
LIST | push_last (LIST list, void *item) |
LIST | reverse (LIST list) |
LIST | search (LIST list, void *key, int_compare is_equal) |
using int_compare = int (*)(void*, void*) |
int count | ( | LIST | var_list | ) |
Definition at line 95 of file oldlist.cpp.
LIST delete_d | ( | LIST | list, |
void * | key, | ||
int_compare | is_equal | ||
) |
Definition at line 110 of file oldlist.cpp.
Definition at line 157 of file oldlist.cpp.
void insert | ( | LIST | list, |
void * | node | ||
) |
Definition at line 172 of file oldlist.cpp.
Definition at line 190 of file oldlist.cpp.
Definition at line 201 of file oldlist.cpp.
Definition at line 244 of file oldlist.cpp.
LIST search | ( | LIST | list, |
void * | key, | ||
int_compare | is_equal | ||
) |
Definition at line 258 of file oldlist.cpp.