5 # include <tpl_binNodeUtils.H>
18 signed char & getDiff() {
return diff; }
20 void reset() { diff = 0; }
28 # define DIFF(p) ((p)->getDiff())
33 if (p == Node::NullPtr)
36 if (DIFF(p) < -1 or DIFF(p) > 1)
44 if (diff > 1 or diff < -1)
47 if (((
int) DIFF(p)) != hR - hL)
50 if (not is_avl(
LLINK(p)))
53 return is_avl(
RLINK(p));
#define LLINK(p)
Definition: tpl_binNode.H:196
#define RLINK(p)
Definition: tpl_binNode.H:201
size_t computeHeightRec(Node *node)
Definition: tpl_binNodeUtils.H:778
#define DECLARE_BINNODE(Name, height, Control_Data)
Definition: tpl_binNode.H:126