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 |
3d1463c8 |
19 | |
20 | //----------------------------------------------------------------------------- |
5f91c9e8 |
21 | // Class AliMpPadIteratorPtr |
22 | // -------------------------- |
23 | // Pointer to the virtual pad iterator; |
24 | // enables to allocate the virtual pad iterator on stack. |
25 | // Usage: |
26 | // MVIndexed* myIndexed = MyIndexed() |
27 | // MVIterator& it = *AliMpPadIteratorPtr(myIndexed->CreateIterator()); |
28 | // |
dbe945cc |
29 | // Included in AliRoot: 2003/05/02 |
5f91c9e8 |
30 | // Authors: David Guez, Ivana Hrivnacova; IPN Orsay |
3d1463c8 |
31 | //----------------------------------------------------------------------------- |
5f91c9e8 |
32 | |
33 | #include "AliMpPadIteratorPtr.h" |
2998a151 |
34 | #include "AliMpVPadIterator.h" |
5f91c9e8 |
35 | |
13985652 |
36 | /// \cond CLASSIMP |
5f91c9e8 |
37 | ClassImp(AliMpPadIteratorPtr) |
13985652 |
38 | /// \endcond |
5f91c9e8 |
39 | |
2998a151 |
40 | //_____________________________________________________________________________ |
5f91c9e8 |
41 | AliMpPadIteratorPtr::AliMpPadIteratorPtr(AliMpVPadIterator* it) |
42 | : fIterator(it) |
dee1d5f1 |
43 | { |
44 | /// Standard constructor |
45 | } |
5f91c9e8 |
46 | |
2998a151 |
47 | //_____________________________________________________________________________ |
dee1d5f1 |
48 | AliMpPadIteratorPtr::~AliMpPadIteratorPtr() |
49 | { |
50 | /// Destructor |
51 | |
5f91c9e8 |
52 | delete fIterator; |
53 | } |