summaryrefslogtreecommitdiff
path: root/include/HTree.h
diff options
context:
space:
mode:
authorPixel <>2001-02-28 11:40:25 +0000
committerPixel <>2001-02-28 11:40:25 +0000
commit833d20a69fe17ab846c153e35230c66a41d8fca9 (patch)
tree180ba073e59fee8df22cb733be2eec4c452e1b85 /include/HTree.h
Premier jetstart
Diffstat (limited to 'include/HTree.h')
-rw-r--r--include/HTree.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/HTree.h b/include/HTree.h
new file mode 100644
index 0000000..7a8dea0
--- /dev/null
+++ b/include/HTree.h
@@ -0,0 +1,25 @@
+#ifndef __HTREE_H__
+#define __HTREE_H__
+
+#include <PTypes.h>
+
+#define MAX_HDEPTH 256
+
+#ifdef __cplusplus
+
+class HTree {
+private:
+ HTree * left, * right;
+ int freq;
+ Datas_t objet;
+public:
+ HTree(int n_freq, char * n_objet);
+ HTree(HTree * n_left, HTree * n_right);
+ ~HTree();
+ ostream & Trace(ostream & os, int d = 0);
+};
+
+#else
+#error This librairy will only compile with a C++ compiler.
+#endif
+#endif