Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
elm::avl Namespace Reference

Classes

class  AbstractTree
 
class  GenTree
 
class  Map
 
class  Queue
 
class  Set
 
class  Tree
 

Functions

static int abs (int x)
 
static void dump (Tree::Node *node, int tab=0)
 

Function Documentation

◆ abs()

static int elm::avl::abs ( int  x)
inlinestatic

◆ dump()

static void elm::avl::dump ( Tree::Node node,
int  tab = 0 
)
static

Replace a child from a parent, depending the child to remove.

Parameters
parentParent to remove a child from.
oldOld child to replace.
_newNew child for replacement.

References Tree::Node::_left(), Tree::Node::_right(), elm::cout, and elm::io::endl.