ROOT logo
#ifndef ALIITSINTMAPNODE_H
#define ALIITSINTMAPNODE_H

//////////////////////////////////////////////////////////////////////
// Author: Henrik Tydesjo                                           //
// Class for the nodes to put in the integer map (AliITSIntMap)     //
//                                                                  //
//////////////////////////////////////////////////////////////////////  

#include <Rtypes.h>

class AliITSIntMapNode {

 public:
  AliITSIntMapNode();
  AliITSIntMapNode(Int_t key, Int_t val, AliITSIntMapNode* left, AliITSIntMapNode* right);
  AliITSIntMapNode(const AliITSIntMapNode& obj);
  virtual ~AliITSIntMapNode();
  AliITSIntMapNode& operator=(const AliITSIntMapNode& obj);

  Int_t             Key() const {return fKey;}
  Int_t             Val() const {return fVal;}
  AliITSIntMapNode*& Left() {return fLeft;}
  AliITSIntMapNode*& Right() {return fRight;}

  void              SetKey(Int_t key) {fKey=key;}
  void              SetVal(Int_t val) {fVal=val;}
  void              SetLeft(AliITSIntMapNode* obj) {fLeft = obj;}
  void              SetRight(AliITSIntMapNode* obj) {fRight = obj;}

 private:
  Int_t fKey;               // key (for sorting)
  Int_t fVal;               // value
  AliITSIntMapNode* fLeft;  // pointer to left object in bin tree
  AliITSIntMapNode* fRight; // pointer to right object in bin tree

};

#endif
 AliITSIntMapNode.h:1
 AliITSIntMapNode.h:2
 AliITSIntMapNode.h:3
 AliITSIntMapNode.h:4
 AliITSIntMapNode.h:5
 AliITSIntMapNode.h:6
 AliITSIntMapNode.h:7
 AliITSIntMapNode.h:8
 AliITSIntMapNode.h:9
 AliITSIntMapNode.h:10
 AliITSIntMapNode.h:11
 AliITSIntMapNode.h:12
 AliITSIntMapNode.h:13
 AliITSIntMapNode.h:14
 AliITSIntMapNode.h:15
 AliITSIntMapNode.h:16
 AliITSIntMapNode.h:17
 AliITSIntMapNode.h:18
 AliITSIntMapNode.h:19
 AliITSIntMapNode.h:20
 AliITSIntMapNode.h:21
 AliITSIntMapNode.h:22
 AliITSIntMapNode.h:23
 AliITSIntMapNode.h:24
 AliITSIntMapNode.h:25
 AliITSIntMapNode.h:26
 AliITSIntMapNode.h:27
 AliITSIntMapNode.h:28
 AliITSIntMapNode.h:29
 AliITSIntMapNode.h:30
 AliITSIntMapNode.h:31
 AliITSIntMapNode.h:32
 AliITSIntMapNode.h:33
 AliITSIntMapNode.h:34
 AliITSIntMapNode.h:35
 AliITSIntMapNode.h:36
 AliITSIntMapNode.h:37
 AliITSIntMapNode.h:38
 AliITSIntMapNode.h:39