]>
Commit | Line | Data |
---|---|---|
b15de2d2 | 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 | fKey(0), | |
11 | fVal(0), | |
53ae21ce | 12 | fLeft(NULL), |
13 | fRight(NULL) | |
b15de2d2 | 14 | {} |
15 | ||
53ae21ce | 16 | AliITSIntMapNode::AliITSIntMapNode(Int_t key, Int_t val, AliITSIntMapNode* left, AliITSIntMapNode* right): |
b15de2d2 | 17 | fKey(key), |
18 | fVal(val), | |
53ae21ce | 19 | fLeft(left), |
20 | fRight(right) | |
b15de2d2 | 21 | {} |
22 | ||
23 | AliITSIntMapNode::AliITSIntMapNode(const AliITSIntMapNode& obj): | |
24 | fKey(obj.fKey), | |
25 | fVal(obj.fVal), | |
53ae21ce | 26 | fLeft(obj.fLeft), |
27 | fRight(obj.fRight) | |
b15de2d2 | 28 | { |
29 | // copy constructor | |
30 | } | |
31 | ||
32 | AliITSIntMapNode::~AliITSIntMapNode() | |
33 | {} | |
34 | ||
35 | AliITSIntMapNode& AliITSIntMapNode::operator=(const AliITSIntMapNode& obj) | |
36 | { | |
37 | // assignment operator | |
38 | if (this!=&obj) { | |
39 | fKey = obj.fKey; | |
40 | fVal = obj.fVal; | |
53ae21ce | 41 | fLeft = obj.fLeft; |
42 | fRight = obj.fRight; | |
b15de2d2 | 43 | } |
44 | return *this; | |
45 | } | |
46 |