ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
Last change
on this file since d88f256a was 3dcd347a, checked in by Thierry Delisle <tdelisle@…>, 9 years ago |
moved some more tests to new test folder
|
-
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
|
---|
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);
|
---|
16 |
|
---|
17 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.