]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpPadIteratorPtr.cxx
From Laurent
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPadIteratorPtr.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 // $Id$
17 // $MpId: AliMpPadIteratorPtr.cxx,v 1.6 2005/08/26 15:43:36 ivana Exp $
18 // Category: basic
19 //
20 // Class AliMpPadIteratorPtr
21 // --------------------------
22 // Pointer to the virtual pad iterator;
23 // enables to allocate the virtual pad iterator on stack.
24 // Usage:
25 // MVIndexed* myIndexed = MyIndexed()
26 // MVIterator& it = *AliMpPadIteratorPtr(myIndexed->CreateIterator());
27 //
28 // Included in AliRoot: 2003/05/02
29 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
30
31 #include "AliMpPadIteratorPtr.h"
32 #include "AliMpVPadIterator.h"
33
34 ClassImp(AliMpPadIteratorPtr)
35
36 //_____________________________________________________________________________
37 AliMpPadIteratorPtr::AliMpPadIteratorPtr(AliMpVPadIterator* it)
38   : fIterator(it)
39 {
40 /// Standard constructor
41 }
42
43 //_____________________________________________________________________________
44 AliMpPadIteratorPtr::AliMpPadIteratorPtr(const AliMpPadIteratorPtr& right) 
45   : TObject(right) 
46 {
47 /// Protected copy constructor (not provided) 
48
49   Fatal("AliMpPadIteratorPtr", "Copy constructor not provided.");
50 }
51
52 //_____________________________________________________________________________
53 AliMpPadIteratorPtr::~AliMpPadIteratorPtr() 
54 {
55 /// Destructor
56
57   delete fIterator;
58 }
59
60 // operators
61
62 //_____________________________________________________________________________
63 AliMpPadIteratorPtr& 
64 AliMpPadIteratorPtr::operator=(const AliMpPadIteratorPtr& right)
65 {
66 /// Protected assignment operator (not provided) 
67
68   // check assignment to self
69   if (this == &right) return *this;
70
71   Fatal("operator =", "Assignment operator not provided.");
72     
73   return *this;  
74 }    
75