LCOV - code coverage report
Current view: top level - ITS/ITSbase - AliITSIntMapNode.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 4 8 50.0 %
Date: 2016-06-14 17:26:59 Functions: 4 8 50.0 %

          Line data    Source code
       1             : #ifndef ALIITSINTMAPNODE_H
       2             : #define ALIITSINTMAPNODE_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         694 :   Int_t             Key() const {return fKey;}
      22         296 :   Int_t             Val() const {return fVal;}
      23         646 :   AliITSIntMapNode*& Left() {return fLeft;}
      24         782 :   AliITSIntMapNode*& Right() {return fRight;}
      25             : 
      26           0 :   void              SetKey(Int_t key) {fKey=key;}
      27           0 :   void              SetVal(Int_t val) {fVal=val;}
      28           0 :   void              SetLeft(AliITSIntMapNode* obj) {fLeft = obj;}
      29           0 :   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

Generated by: LCOV version 1.11