#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 |
Defines | |
#define | AVL_H 1 |
#define | AVL_MAX_HEIGHT 32 |
#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) |
Functions | |
void * | avl_malloc (struct libavl_allocator *, size_t) |
void | avl_free (struct libavl_allocator *, void *) |
struct avl_table * | avl_create (avl_comparison_func *, void *, struct libavl_allocator *) |
struct avl_table * | avl_copy (const struct avl_table *, avl_copy_func *, avl_item_func *, struct libavl_allocator *) |
void | avl_destroy (struct avl_table *, avl_item_func *) |
void ** | avl_probe (struct avl_table *, void *) |
void * | avl_insert (struct avl_table *, void *) |
void * | avl_replace (struct avl_table *, void *) |
void * | avl_delete (struct avl_table *, const void *) |
void * | avl_find (const struct avl_table *, const void *) |
void | avl_assert_insert (struct avl_table *, void *) |
void * | avl_assert_delete (struct avl_table *, void *) |
void | avl_t_init (struct avl_traverser *, struct avl_table *) |
void * | avl_t_first (struct avl_traverser *, struct avl_table *) |
void * | avl_t_last (struct avl_traverser *, struct avl_table *) |
void * | avl_t_find (struct avl_traverser *, struct avl_table *, void *) |
void * | avl_t_insert (struct avl_traverser *, struct avl_table *, void *) |
void * | avl_t_copy (struct avl_traverser *, const struct avl_traverser *) |
void * | avl_t_next (struct avl_traverser *) |
void * | avl_t_prev (struct avl_traverser *) |
void * | avl_t_cur (struct avl_traverser *) |
void * | avl_t_replace (struct avl_traverser *, void *) |
Variables | |
struct libavl_allocator | avl_allocator_default |
#define AVL_MAX_HEIGHT 32 |
Definition at line 54 of file avl.h.
Referenced by avl_copy(), avl_delete(), avl_probe(), avl_t_find(), avl_t_first(), avl_t_last(), avl_t_next(), and avl_t_prev().
typedef int avl_comparison_func(const void *avl_a, const void *avl_b, void *avl_param) |
typedef void* avl_copy_func(void *avl_item, void *avl_param) |
typedef void avl_item_func(void *avl_item, void *avl_param) |
void* avl_assert_delete | ( | struct avl_table * | , | |
void * | ||||
) |
void avl_assert_insert | ( | struct avl_table * | , | |
void * | ||||
) |
struct avl_table* avl_copy | ( | const struct avl_table * | , | |
avl_copy_func * | , | |||
avl_item_func * | , | |||
struct libavl_allocator * | ||||
) | [read] |
Definition at line 727 of file avl.c.
References avl_table::avl_alloc, avl_node::avl_balance, avl_table::avl_compare, avl_table::avl_count, avl_create, avl_node::avl_data, avl_node::avl_link, AVL_MAX_HEIGHT, avl_table::avl_param, and avl_table::avl_root.
struct avl_table* avl_create | ( | avl_comparison_func * | , | |
void * | , | |||
struct libavl_allocator * | ||||
) | [read] |
Definition at line 37 of file avl.c.
References 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, and libavl_allocator::libavl_malloc.
void* avl_delete | ( | struct avl_table * | , | |
const void * | ||||
) |
Definition at line 228 of file avl.c.
References 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, and libavl_allocator::libavl_free.
void avl_destroy | ( | struct avl_table * | , | |
avl_item_func * | ||||
) |
Definition at line 822 of file avl.c.
References avl_table::avl_alloc, avl_node::avl_data, avl_node::avl_link, avl_table::avl_param, avl_table::avl_root, and libavl_allocator::libavl_free.
void* avl_find | ( | const struct avl_table * | , | |
const void * | ||||
) |
Definition at line 64 of file avl.c.
References avl_table::avl_compare, avl_node::avl_data, avl_node::avl_link, avl_table::avl_param, and avl_table::avl_root.
void avl_free | ( | struct libavl_allocator * | , | |
void * | ||||
) |
void* avl_insert | ( | struct avl_table * | , | |
void * | ||||
) |
void* avl_malloc | ( | struct libavl_allocator * | , | |
size_t | ||||
) |
void** avl_probe | ( | struct avl_table * | , | |
void * | ||||
) |
Definition at line 89 of file avl.c.
References 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, and libavl_allocator::libavl_malloc.
void* avl_replace | ( | struct avl_table * | , | |
void * | ||||
) |
void* avl_t_copy | ( | struct avl_traverser * | , | |
const struct avl_traverser * | ||||
) |
Definition at line 557 of file avl.c.
References avl_node::avl_data, avl_table::avl_generation, avl_traverser::avl_generation, avl_traverser::avl_height, avl_traverser::avl_node, avl_traverser::avl_stack, and avl_traverser::avl_table.
void* avl_t_cur | ( | struct avl_traverser * | ) |
void* avl_t_find | ( | struct avl_traverser * | , | |
struct avl_table * | , | |||
void * | ||||
) |
Definition at line 493 of file avl.c.
References avl_table::avl_compare, avl_node::avl_data, avl_table::avl_generation, avl_traverser::avl_generation, avl_traverser::avl_height, avl_node::avl_link, AVL_MAX_HEIGHT, avl_traverser::avl_node, avl_table::avl_param, avl_table::avl_root, avl_traverser::avl_stack, and avl_traverser::avl_table.
void* avl_t_first | ( | struct avl_traverser * | , | |
struct avl_table * | ||||
) |
Definition at line 437 of file avl.c.
References avl_node::avl_data, avl_table::avl_generation, avl_traverser::avl_generation, avl_traverser::avl_height, avl_node::avl_link, AVL_MAX_HEIGHT, avl_traverser::avl_node, avl_table::avl_root, avl_traverser::avl_stack, and avl_traverser::avl_table.
void avl_t_init | ( | struct avl_traverser * | , | |
struct avl_table * | ||||
) |
Definition at line 425 of file avl.c.
References avl_table::avl_generation, avl_traverser::avl_generation, avl_traverser::avl_height, avl_traverser::avl_node, and avl_traverser::avl_table.
void* avl_t_insert | ( | struct avl_traverser * | , | |
struct avl_table * | , | |||
void * | ||||
) |
Definition at line 532 of file avl.c.
References avl_node::avl_data, avl_table::avl_generation, avl_traverser::avl_generation, avl_traverser::avl_node, avl_probe, avl_t_init, and avl_traverser::avl_table.
void* avl_t_last | ( | struct avl_traverser * | , | |
struct avl_table * | ||||
) |
Definition at line 464 of file avl.c.
References avl_node::avl_data, avl_table::avl_generation, avl_traverser::avl_generation, avl_traverser::avl_height, avl_node::avl_link, AVL_MAX_HEIGHT, avl_traverser::avl_node, avl_table::avl_root, avl_traverser::avl_stack, and avl_traverser::avl_table.
void* avl_t_next | ( | struct avl_traverser * | ) |
Definition at line 581 of file avl.c.
References avl_node::avl_data, avl_table::avl_generation, avl_traverser::avl_generation, avl_traverser::avl_height, avl_node::avl_link, AVL_MAX_HEIGHT, avl_traverser::avl_node, avl_traverser::avl_stack, avl_t_first, and avl_traverser::avl_table.
void* avl_t_prev | ( | struct avl_traverser * | ) |
Definition at line 634 of file avl.c.
References avl_node::avl_data, avl_table::avl_generation, avl_traverser::avl_generation, avl_traverser::avl_height, avl_node::avl_link, AVL_MAX_HEIGHT, avl_traverser::avl_node, avl_traverser::avl_stack, avl_t_last, and avl_traverser::avl_table.
void* avl_t_replace | ( | struct avl_traverser * | , | |
void * | ||||
) |