]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpPadIteratorPtr.cxx
Updated comments for Doxygen - corrected warnings
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPadIteratorPtr.cxx
CommitLineData
dee1d5f1 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
5f91c9e8 16// $Id$
13985652 17// $MpId: AliMpPadIteratorPtr.cxx,v 1.7 2006/05/24 13:58:29 ivana Exp $
5f91c9e8 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//
dbe945cc 28// Included in AliRoot: 2003/05/02
5f91c9e8 29// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
30
31#include "AliMpPadIteratorPtr.h"
2998a151 32#include "AliMpVPadIterator.h"
5f91c9e8 33
13985652 34/// \cond CLASSIMP
5f91c9e8 35ClassImp(AliMpPadIteratorPtr)
13985652 36/// \endcond
5f91c9e8 37
2998a151 38//_____________________________________________________________________________
5f91c9e8 39AliMpPadIteratorPtr::AliMpPadIteratorPtr(AliMpVPadIterator* it)
40 : fIterator(it)
dee1d5f1 41{
42/// Standard constructor
43}
5f91c9e8 44
2998a151 45//_____________________________________________________________________________
46AliMpPadIteratorPtr::AliMpPadIteratorPtr(const AliMpPadIteratorPtr& right)
dee1d5f1 47 : TObject(right)
48{
49/// Protected copy constructor (not provided)
50
2998a151 51 Fatal("AliMpPadIteratorPtr", "Copy constructor not provided.");
52}
53
54//_____________________________________________________________________________
dee1d5f1 55AliMpPadIteratorPtr::~AliMpPadIteratorPtr()
56{
57/// Destructor
58
5f91c9e8 59 delete fIterator;
60}
61
2998a151 62// operators
63
64//_____________________________________________________________________________
65AliMpPadIteratorPtr&
66AliMpPadIteratorPtr::operator=(const AliMpPadIteratorPtr& right)
67{
dee1d5f1 68/// Protected assignment operator (not provided)
69
70 // check assignment to self
2998a151 71 if (this == &right) return *this;
72
dee1d5f1 73 Fatal("operator =", "Assignment operator not provided.");
2998a151 74
75 return *this;
76}
77