Get the branch name from the RunLoader
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPadIteratorPtr.cxx
CommitLineData
5f91c9e8 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"
2998a151 15#include "AliMpVPadIterator.h"
5f91c9e8 16
17ClassImp(AliMpPadIteratorPtr)
18
2998a151 19//_____________________________________________________________________________
5f91c9e8 20AliMpPadIteratorPtr::AliMpPadIteratorPtr(AliMpVPadIterator* it)
21 : fIterator(it)
22{}
23
2998a151 24//_____________________________________________________________________________
25AliMpPadIteratorPtr::AliMpPadIteratorPtr(const AliMpPadIteratorPtr& right)
26 : TObject(right) {
27//
28 Fatal("AliMpPadIteratorPtr", "Copy constructor not provided.");
29}
30
31//_____________________________________________________________________________
5f91c9e8 32AliMpPadIteratorPtr::~AliMpPadIteratorPtr() {
33//
34 delete fIterator;
35}
36
2998a151 37// operators
38
39//_____________________________________________________________________________
40AliMpPadIteratorPtr&
41AliMpPadIteratorPtr::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