source: src/examples/avltree/avl-private.h @ d0f8b19

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since d0f8b19 was 2edd5502, checked in by Rob Schluntz <rschlunt@…>, 8 years ago

added include guard to avl-private.h

  • Property mode set to 100644
File size: 444 bytes
Line 
1#ifndef AVL_PRIVATE_H
2#include "avl.h"
3
4// functions that really shouldn't be exposed, but are to reduce compilation time
5
6// attempt to fix the tree, if necessary
7forall(otype K | Comparable(K), otype V)
8tree(K, V) * tryFix(tree(K, V) * t);
9
10// sets parent field of c to be p
11forall(otype K | Comparable(K), otype V)
12void setParent(tree(K, V) * c, tree(K, V) * p);
13
14forall(otype K | Comparable(K), otype V)
15int height(tree(K, V) * t);
16
17#endif
Note: See TracBrowser for help on using the repository browser.