ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since ea0c5e3 was
6b0b624,
checked in by Peter A. Buhr <pabuhr@…>, 7 years ago
|
change #ifndef to #pragma once
|
-
Property mode set to
100644
|
File size:
427 bytes
|
Rev | Line | |
---|
[6b0b624] | 1 | #pragma once |
---|
[6e3ae00] | 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 |
---|
| 7 | forall(otype K | Comparable(K), otype V) |
---|
| 8 | tree(K, V) * tryFix(tree(K, V) * t); |
---|
| 9 | |
---|
| 10 | // sets parent field of c to be p |
---|
| 11 | forall(otype K | Comparable(K), otype V) |
---|
| 12 | void setParent(tree(K, V) * c, tree(K, V) * p); |
---|
| 13 | |
---|
| 14 | forall(otype K | Comparable(K), otype V) |
---|
| 15 | int height(tree(K, V) * t); |
---|
Note: See
TracBrowser
for help on using the repository browser.