]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpPadIteratorPtr.cxx
Extendened class description to include at least 5 subsequent lines required by rule...
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPadIteratorPtr.cxx
1 // $Id$
2 // Category: basic
3 //
4 // Class AliMpPadIteratorPtr
5 // --------------------------
6 // Pointer to the virtual pad iterator;
7 // enables to allocate the virtual pad iterator on stack.
8 // Usage:
9 // MVIndexed* myIndexed = MyIndexed()
10 // MVIterator& it = *AliMpPadIteratorPtr(myIndexed->CreateIterator());
11 //
12 // Included in AliRoot: 2003/05/02
13 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
14
15 #include "AliMpPadIteratorPtr.h"
16 #include "AliMpVPadIterator.h"
17
18 ClassImp(AliMpPadIteratorPtr)
19
20 //_____________________________________________________________________________
21 AliMpPadIteratorPtr::AliMpPadIteratorPtr(AliMpVPadIterator* it)
22   : fIterator(it)
23 {}
24
25 //_____________________________________________________________________________
26 AliMpPadIteratorPtr::AliMpPadIteratorPtr(const AliMpPadIteratorPtr& right) 
27   : TObject(right) {
28 // 
29   Fatal("AliMpPadIteratorPtr", "Copy constructor not provided.");
30 }
31
32 //_____________________________________________________________________________
33 AliMpPadIteratorPtr::~AliMpPadIteratorPtr() {
34 //
35   delete fIterator;
36 }
37
38 // operators
39
40 //_____________________________________________________________________________
41 AliMpPadIteratorPtr& 
42 AliMpPadIteratorPtr::operator=(const AliMpPadIteratorPtr& right)
43 {
44   // check assignement to self
45   if (this == &right) return *this;
46
47   Fatal("operator =", "Assignement operator not provided.");
48     
49   return *this;  
50 }    
51