Line data Source code
1 : //////////////////////////////////////////////////////////////////////
2 : // Author: Henrik Tydesjo //
3 : // Implementation of the nodes to put in the integer map //
4 : // (AliITSIntMap). //
5 : //////////////////////////////////////////////////////////////////////
6 :
7 : #include "AliITSIntMapNode.h"
8 :
9 : AliITSIntMapNode::AliITSIntMapNode():
10 0 : fKey(0),
11 0 : fVal(0),
12 0 : fLeft(NULL),
13 0 : fRight(NULL)
14 0 : {}
15 :
16 : AliITSIntMapNode::AliITSIntMapNode(Int_t key, Int_t val, AliITSIntMapNode* left, AliITSIntMapNode* right):
17 148 : fKey(key),
18 148 : fVal(val),
19 148 : fLeft(left),
20 148 : fRight(right)
21 740 : {}
22 :
23 : AliITSIntMapNode::AliITSIntMapNode(const AliITSIntMapNode& obj):
24 0 : fKey(obj.fKey),
25 0 : fVal(obj.fVal),
26 0 : fLeft(obj.fLeft),
27 0 : fRight(obj.fRight)
28 0 : {
29 : // copy constructor
30 0 : }
31 :
32 : AliITSIntMapNode::~AliITSIntMapNode()
33 888 : {}
34 :
35 : AliITSIntMapNode& AliITSIntMapNode::operator=(const AliITSIntMapNode& obj)
36 : {
37 : // assignment operator
38 0 : if (this!=&obj) {
39 0 : fKey = obj.fKey;
40 0 : fVal = obj.fVal;
41 0 : fLeft = obj.fLeft;
42 0 : fRight = obj.fRight;
43 0 : }
44 0 : return *this;
45 : }
46 :
|