summaryrefslogtreecommitdiff
path: root/include/HTree.h
blob: c15341528afe7a254f54d6fc8bde21ec850fb939 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __HTREE_H__
#define __HTREE_H__

#include <PTypes.h>

#define MAX_HDEPTH 256

#ifdef __cplusplus

class HTree {
      private:
	HTree * left, *right;
	int freq;
	char * objet;
      public:
	  HTree(int n_freq, char * n_objet);
	  HTree(HTree * n_left, HTree * n_right);
	 ~HTree();
	  ostream & Trace(ostream & os, int d = 0);
	  int ReadFreq(void);
	  char * ReadObj(void);
};

#else
#error This librairy will only compile with a C++ compiler.
#endif
#endif