ROSS
avl_tree.h File Reference
#include "ross-types.h"

Go to the source code of this file.

Data Structures

struct  avlNode

Macros

#define AVL_EMPTY   (0)

Functions

void avlDestroy (AvlTree t)
int avlGetHeight (AvlTree t)
int avlSearch (AvlTree t, tw_event *key)
void avlInsert (AvlTree *t, tw_event *key)
void avlSanityCheck (AvlTree t)
void avlPrintKeys (AvlTree t)
tw_eventavlDeleteMin (AvlTree *t)
tw_eventavlDelete (AvlTree *t, tw_event *key)
AvlTree avl_alloc (void)
void avl_free (AvlTree t)

Macro Definition Documentation

◆ AVL_EMPTY

Function Documentation

◆ avl_alloc()

AvlTree avl_alloc ( void )

Definition at line 330 of file avl_tree.c.

References g_tw_avl_node_count, g_tw_pe, avlNode::next, tw_error(), and TW_LOC.

◆ avl_free()

void avl_free ( AvlTree t)

Definition at line 346 of file avl_tree.c.

References AVL_EMPTY, and g_tw_pe.

◆ avlDelete()

◆ avlDeleteMin()

tw_event * avlDeleteMin ( AvlTree * t)

Definition at line 245 of file avl_tree.c.

References AVL_EMPTY, avl_free(), avlDeleteMin(), avlRebalance(), avlNode::child, and avlNode::key.

◆ avlDestroy()

void avlDestroy ( AvlTree t)

Definition at line 14 of file avl_tree.c.

References AVL_EMPTY, avl_free(), avlDestroy(), and avlNode::child.

◆ avlGetHeight()

int avlGetHeight ( AvlTree t)

Definition at line 27 of file avl_tree.c.

References AVL_EMPTY, and avlNode::height.

Referenced by avlFixHeight(), avlRebalance(), and avlSanityCheck().

◆ avlInsert()

◆ avlPrintKeys()

void avlPrintKeys ( AvlTree t)

Definition at line 233 of file avl_tree.c.

References AVL_EMPTY, avlPrintKeys(), and avlNode::child.

◆ avlSanityCheck()

void avlSanityCheck ( AvlTree t)

◆ avlSearch()