|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|
#include <stddef.h>

Go to the source code of this file.
Data Structures | |
| struct | libavl_allocator |
| struct | avl_table |
| struct | avl_node |
| struct | avl_traverser |
Macros | |
| #define | LIBAVL_ALLOCATOR |
| #define | AVL_MAX_HEIGHT 92 |
| #define | avl_count(table) ((size_t)(table)->avl_count) |
Typedefs | |
| typedef int | avl_comparison_func(const void *avl_a, const void *avl_b, void *avl_param) |
| typedef void | avl_item_func(void *avl_item, void *avl_param) |
| typedef void * | avl_copy_func(void *avl_item, void *avl_param) |
Variables | |
| struct libavl_allocator | avl_allocator_default |
Definition at line 842 of file avl.c.
References assert, avl_delete, and NULL.
| struct avl_table * avl_copy | ( | const struct avl_table * | org, |
| avl_copy_func * | copy, | ||
| avl_item_func * | destroy, | ||
| struct libavl_allocator * | allocator | ||
| ) |
Definition at line 698 of file avl.c.
References assert, avl_node::avl_balance, avl_create, avl_node::avl_data, avl_node::avl_link, AVL_MAX_HEIGHT, NULL, and x.
| struct avl_table * avl_create | ( | avl_comparison_func * | compare, |
| void * | param, | ||
| struct libavl_allocator * | allocator | ||
| ) |
Definition at line 38 of file avl.c.
References assert, avl_table::avl_alloc, avl_allocator_default, avl_table::avl_compare, avl_table::avl_count, avl_table::avl_generation, avl_table::avl_param, avl_table::avl_root, compare(), and NULL.
Definition at line 230 of file avl.c.
References assert, avl_table::avl_alloc, avl_node::avl_balance, avl_table::avl_compare, avl_table::avl_count, avl_node::avl_data, avl_table::avl_generation, avl_node::avl_link, AVL_MAX_HEIGHT, avl_table::avl_param, avl_table::avl_root, NULL, r, and x.
| void avl_destroy | ( | struct avl_table * | tree, |
| avl_item_func * | destroy | ||
| ) |
Definition at line 785 of file avl.c.
References assert, avl_table::avl_alloc, avl_node::avl_data, avl_node::avl_link, avl_table::avl_param, avl_table::avl_root, and NULL.
Definition at line 64 of file avl.c.
References assert, avl_table::avl_compare, avl_node::avl_data, avl_node::avl_link, avl_table::avl_param, avl_table::avl_root, and NULL.
| void avl_free | ( | struct libavl_allocator * | allocator, |
| void * | block | ||
| ) |
| void * avl_malloc | ( | struct libavl_allocator * | allocator, |
| size_t | size | ||
| ) |
Definition at line 87 of file avl.c.
References assert, avl_table::avl_alloc, avl_node::avl_balance, avl_table::avl_compare, avl_table::avl_count, avl_node::avl_data, avl_table::avl_generation, avl_node::avl_link, AVL_MAX_HEIGHT, avl_table::avl_param, avl_table::avl_root, NULL, and x.
| void * avl_t_copy | ( | struct avl_traverser * | trav, |
| const struct avl_traverser * | src | ||
| ) |
Definition at line 546 of file avl.c.
References assert, avl_traverser::avl_generation, avl_traverser::avl_height, avl_traverser::avl_node, avl_traverser::avl_stack, avl_traverser::avl_table, and NULL.
| void * avl_t_cur | ( | struct avl_traverser * | trav | ) |
Definition at line 484 of file avl.c.
References assert, avl_table::avl_compare, avl_node::avl_data, avl_table::avl_generation, avl_node::avl_link, AVL_MAX_HEIGHT, avl_table::avl_param, avl_table::avl_root, and NULL.
| void * avl_t_first | ( | struct avl_traverser * | trav, |
| struct avl_table * | tree | ||
| ) |
Definition at line 432 of file avl.c.
References assert, avl_table::avl_generation, AVL_MAX_HEIGHT, avl_table::avl_root, NULL, and x.
| void avl_t_init | ( | struct avl_traverser * | trav, |
| struct avl_table * | tree | ||
| ) |
Definition at line 421 of file avl.c.
References avl_table::avl_generation, and NULL.
Definition at line 520 of file avl.c.
References assert, avl_node::avl_data, avl_table::avl_generation, avl_probe, avl_t_init, and NULL.
| void * avl_t_last | ( | struct avl_traverser * | trav, |
| struct avl_table * | tree | ||
| ) |
Definition at line 457 of file avl.c.
References assert, avl_table::avl_generation, AVL_MAX_HEIGHT, avl_table::avl_root, NULL, and x.
| void * avl_t_next | ( | struct avl_traverser * | trav | ) |
Definition at line 567 of file avl.c.
References assert, AVL_MAX_HEIGHT, avl_t_first, NULL, and x.
| void * avl_t_prev | ( | struct avl_traverser * | trav | ) |
Definition at line 612 of file avl.c.
References assert, AVL_MAX_HEIGHT, avl_t_last, NULL, and x.
| void * avl_t_replace | ( | struct avl_traverser * | trav, |
| void * | new | ||
| ) |
|
extern |
Definition at line 827 of file avl.c.
Referenced by avl_create().