]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSIntMapNode.h
Upgraded possibility of DCS data size reduction (V. Pospisil)
[u/mrichter/AliRoot.git] / ITS / AliITSIntMapNode.h
1 #ifndef ALI_ITS_INTMAPNODE_H
2 #define ALI_ITS_INTMAPNODE_H
3
4 //////////////////////////////////////////////////////////////////////
5 // Author: Henrik Tydesjo                                           //
6 // Class for the nodes to put in the integer map (AliITSIntMap)     //
7 //                                                                  //
8 //////////////////////////////////////////////////////////////////////  
9
10 #include <Rtypes.h>
11
12 class AliITSIntMapNode {
13
14  public:
15   AliITSIntMapNode();
16   AliITSIntMapNode(Int_t key, Int_t val, AliITSIntMapNode* left, AliITSIntMapNode* right);
17   AliITSIntMapNode(const AliITSIntMapNode& obj);
18   virtual ~AliITSIntMapNode();
19   AliITSIntMapNode& operator=(const AliITSIntMapNode& obj);
20
21   Int_t             Key() const {return fKey;}
22   Int_t             Val() const {return fVal;}
23   AliITSIntMapNode*& Left() {return fLeft;}
24   AliITSIntMapNode*& Right() {return fRight;}
25
26   void              SetKey(Int_t key) {fKey=key;}
27   void              SetVal(Int_t val) {fVal=val;}
28   void              SetLeft(AliITSIntMapNode* obj) {fLeft = obj;}
29   void              SetRight(AliITSIntMapNode* obj) {fRight = obj;}
30
31  private:
32   Int_t fKey;               // key (for sorting)
33   Int_t fVal;               // value
34   AliITSIntMapNode* fLeft;  // pointer to left object in bin tree
35   AliITSIntMapNode* fRight; // pointer to right object in bin tree
36
37 };
38
39 #endif