]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - ITS/AliITSIntMapNode.cxx
following coverity, fix for case of invalid DET string passed to GetNalignable
[u/mrichter/AliRoot.git] / ITS / AliITSIntMapNode.cxx
... / ...
CommitLineData
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
9AliITSIntMapNode::AliITSIntMapNode():
10 fKey(0),
11 fVal(0),
12 fLeft(NULL),
13 fRight(NULL)
14{}
15
16AliITSIntMapNode::AliITSIntMapNode(Int_t key, Int_t val, AliITSIntMapNode* left, AliITSIntMapNode* right):
17 fKey(key),
18 fVal(val),
19 fLeft(left),
20 fRight(right)
21{}
22
23AliITSIntMapNode::AliITSIntMapNode(const AliITSIntMapNode& obj):
24 fKey(obj.fKey),
25 fVal(obj.fVal),
26 fLeft(obj.fLeft),
27 fRight(obj.fRight)
28{
29 // copy constructor
30}
31
32AliITSIntMapNode::~AliITSIntMapNode()
33{}
34
35AliITSIntMapNode& AliITSIntMapNode::operator=(const AliITSIntMapNode& obj)
36{
37 // assignment operator
38 if (this!=&obj) {
39 fKey = obj.fKey;
40 fVal = obj.fVal;
41 fLeft = obj.fLeft;
42 fRight = obj.fRight;
43 }
44 return *this;
45}
46