|
tesseract
4.1.0
|
Go to the source code of this file.
Classes | |
| struct | list_rec |
Macros | |
| #define | NIL_LIST ((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 | push_on(list, thing) ((list) = push(list, (LIST)(thing))) |
| #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 96 of file oldlist.cpp.
| LIST delete_d | ( | LIST | list, |
| void * | key, | ||
| int_compare | is_equal | ||
| ) |
Definition at line 111 of file oldlist.cpp.
Definition at line 142 of file oldlist.cpp.
Definition at line 158 of file oldlist.cpp.
| void insert | ( | LIST | list, |
| void * | node | ||
| ) |
Definition at line 173 of file oldlist.cpp.
Definition at line 191 of file oldlist.cpp.
Definition at line 202 of file oldlist.cpp.
Definition at line 219 of file oldlist.cpp.
Definition at line 233 of file oldlist.cpp.
Definition at line 250 of file oldlist.cpp.
| LIST search | ( | LIST | list, |
| void * | key, | ||
| int_compare | is_equal | ||
| ) |
Definition at line 264 of file oldlist.cpp.