]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpPadIteratorPtr.cxx
Coding conventions corrections only
[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 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
13
14 #include "AliMpPadIteratorPtr.h"
15 #include "AliMpVPadIterator.h"
16
17 ClassImp(AliMpPadIteratorPtr)
18
19 //_____________________________________________________________________________
20 AliMpPadIteratorPtr::AliMpPadIteratorPtr(AliMpVPadIterator* it)
21   : fIterator(it)
22 {}
23
24 //_____________________________________________________________________________
25 AliMpPadIteratorPtr::AliMpPadIteratorPtr(const AliMpPadIteratorPtr& right) 
26   : TObject(right) {
27 // 
28   Fatal("AliMpPadIteratorPtr", "Copy constructor not provided.");
29 }
30
31 //_____________________________________________________________________________
32 AliMpPadIteratorPtr::~AliMpPadIteratorPtr() {
33 //
34   delete fIterator;
35 }
36
37 // operators
38
39 //_____________________________________________________________________________
40 AliMpPadIteratorPtr& 
41 AliMpPadIteratorPtr::operator=(const AliMpPadIteratorPtr& right)
42 {
43   // check assignement to self
44   if (this == &right) return *this;
45
46   Fatal("operator =", "Assignement operator not provided.");
47     
48   return *this;  
49 }    
50