Go to the source code of this file.
Functions | |
void | avlDestroy (AvlTree t) |
int | avlGetHeight (AvlTree t) |
int | avlSearch (AvlTree t, tw_event *key) |
void | avlSanityCheck (AvlTree root) |
static void | avlFixHeight (AvlTree t) |
static void | avlRotate (AvlTree *root, int d) |
static void | avlRebalance (AvlTree *t) |
void | avlInsert (AvlTree *t, tw_event *key) |
void | avlPrintKeys (AvlTree t) |
tw_event * | avlDeleteMin (AvlTree *t) |
tw_event * | avlDelete (AvlTree *t, tw_event *key) |
AvlTree | avl_alloc (void) |
void | avl_free (AvlTree t) |
Variables | |
tw_pe * | pe |
AvlTree avl_alloc | ( | void | ) |
Definition at line 300 of file avl_tree.c.
References tw_pe::avl_list_head, g_tw_avl_node_count, g_tw_pe, avlNode::next, tw_error(), and TW_LOC.
Referenced by avlInsert().
void avl_free | ( | AvlTree | t | ) |
Definition at line 316 of file avl_tree.c.
References AVL_EMPTY, tw_pe::avl_list_head, and g_tw_pe.
Referenced by avlDelete(), avlDeleteMin(), and avlDestroy().
Definition at line 251 of file avl_tree.c.
References AVL_EMPTY, avl_free(), avlDelete(), avlDeleteMin(), avlRebalance(), avlNode::child, tw_event::event_id, tw_event::recv_ts, tw_event::send_pe, tw_error(), TW_LOC, and TW_STIME_CMP.
Referenced by avlDelete(), and tw_hash_remove().
Definition at line 226 of file avl_tree.c.
References AVL_EMPTY, avl_free(), avlDeleteMin(), avlRebalance(), avlNode::child, and avlNode::key.
Referenced by avlDelete(), and avlDeleteMin().
void avlDestroy | ( | AvlTree | t | ) |
Definition at line 15 of file avl_tree.c.
References AVL_EMPTY, avl_free(), avlDestroy(), and avlNode::child.
Referenced by avlDestroy().
|
static |
Definition at line 87 of file avl_tree.c.
References AVL_EMPTY, avlGetHeight(), avlNode::child, avlNode::height, and ROSS_MAX.
Referenced by avlRebalance(), and avlRotate().
int avlGetHeight | ( | AvlTree | t | ) |
Definition at line 28 of file avl_tree.c.
References AVL_EMPTY, and avlNode::height.
Referenced by avlFixHeight(), avlRebalance(), and avlSanityCheck().
Definition at line 163 of file avl_tree.c.
References avl_alloc(), AVL_EMPTY, avlInsert(), avlRebalance(), tw_event::event_id, g_tw_avl_node_count, tw_event::recv_ts, tw_event::send_pe, tw_error(), TW_LOC, tw_printf(), and TW_STIME_CMP.
Referenced by avlInsert(), and tw_hash_insert().
void avlPrintKeys | ( | AvlTree | t | ) |
Definition at line 214 of file avl_tree.c.
References AVL_EMPTY, avlPrintKeys(), and avlNode::child.
Referenced by avlPrintKeys().
|
static |
Definition at line 129 of file avl_tree.c.
References AVL_EMPTY, avlFixHeight(), avlGetHeight(), and avlRotate().
Referenced by avlDelete(), avlDeleteMin(), and avlInsert().
|
static |
Definition at line 106 of file avl_tree.c.
References avlFixHeight(), and avlNode::child.
Referenced by avlRebalance().
void avlSanityCheck | ( | AvlTree | root | ) |
Definition at line 72 of file avl_tree.c.
References AVL_EMPTY, avlGetHeight(), avlSanityCheck(), avlNode::child, avlNode::height, and ROSS_MAX.
Referenced by avlSanityCheck().
Definition at line 40 of file avl_tree.c.
References AVL_EMPTY, avlSearch(), avlNode::child, tw_event::event_id, avlNode::key, tw_event::recv_ts, tw_event::send_pe, and TW_STIME_CMP.
Referenced by avlSearch().
tw_pe* pe |
Definition at line 11 of file avl_tree.c.
Referenced by map_round_robin(), setup_pes(), tw_eventq_push_list(), tw_hash_insert(), tw_hash_remove(), tw_kp_onpe(), tw_kp_rollback_event(), and tw_lp_onpe().