1 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
4 ///////////////////////////////////////////////////
5 // Huffman Table associated classes for set:TPC //
6 ///////////////////////////////////////////////////
14 class AliTPCHNode: public TObject {
16 AliTPCHNode(); //default constructor
17 AliTPCHNode(Int_t symbol, Double_t freq);
18 virtual ~AliTPCHNode() {}
19 AliTPCHNode(const AliTPCHNode &source); // copy constructor
20 AliTPCHNode& operator=(const AliTPCHNode &source); // ass. op.
22 Bool_t IsSortable() const{return kTRUE;}
23 Int_t Compare(const TObject *obj) const;
24 void SetLeft(AliTPCHNode* point){fLeft=point;}
25 void SetRight(AliTPCHNode* point){fRight=point;}
26 inline AliTPCHNode* GetRight()const{return fRight;}
27 inline AliTPCHNode* GetLeft()const{return fLeft;}
28 void SetSymbol(Int_t sym){fSymbol=sym;}
29 void SetFrequency(Double_t freq){fFrequency=freq;}
30 Double_t GetFrequency()const{return fFrequency;}
31 inline Int_t GetSymbol()const{return fSymbol;}
34 Int_t fSymbol; // Symbols
35 Double_t fFrequency; // Frequency of the Symbol
36 AliTPCHNode *fLeft; // Pointer to the left son
37 AliTPCHNode *fRight; // Pointer to the right son
38 ClassDef(AliTPCHNode,1)