|
|
|
|
/home/brennan/n-sim/OrbisQuartus/server/xen/backend/avl.c File Reference#include "oq_alloc.h"
#include "avl.h"
#include <stdio.h>
Go to the source code of this file.
|
Defines |
#define | OQ_PRINT(fmt, args...) fprintf(stderr, fmt, ## args) |
#define | OQ_PRINTLN(fmt, args...) fprintf(stderr, fmt, ## args) |
Enumerations |
enum | { LEFT = 0,
RIGHT = 1
} |
Functions |
unsigned long | avl_size (struct avltree *tree) |
avlnode * | avl_find (unsigned long key, struct avltree *tree) |
void * | avl_retrieve (unsigned long key, struct avltree *tree) |
avlnode * | avl_find_min (struct avltree *tree) |
avlnode * | avl_find_max (struct avltree *tree) |
int | avl_insert (void *elt, unsigned long key, struct avltree *tree) |
int | avl_delete (void *elt, unsigned long key, struct avltree *tree) |
void | destroy_avltree (struct avlnode *root) |
void | avl_print (struct avltree *tree) |
void | avl_print_list (struct avltree *tree) |
Define Documentation
#define OQ_PRINT |
( |
fmt, |
|
|
args... |
|
) |
fprintf(stderr, fmt, ## args) |
|
#define OQ_PRINTLN |
( |
fmt, |
|
|
args... |
|
) |
fprintf(stderr, fmt, ## args) |
|
Enumeration Type Documentation
|
- Enumerator:
-
Definition at line 51 of file avl.c. |
Function Documentation
int avl_delete |
( |
void * |
elt, |
|
|
unsigned long |
key, |
|
|
struct avltree * |
tree |
|
) |
|
|
int avl_insert |
( |
void * |
elt, |
|
|
unsigned long |
key, |
|
|
struct avltree * |
tree |
|
) |
|
|
void avl_print |
( |
struct avltree * |
tree |
) |
|
|
void avl_print_list |
( |
struct avltree * |
tree |
) |
|
|
void* avl_retrieve |
( |
unsigned long |
key, |
|
|
struct avltree * |
tree |
|
) |
|
|
unsigned long avl_size |
( |
struct avltree * |
tree |
) |
|
|
void destroy_avltree |
( |
struct avlnode * |
root |
) |
|
|
|