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 | // |
dbe945cc |
12 | // Included in AliRoot: 2003/05/02 |
5f91c9e8 |
13 | // Authors: David Guez, Ivana Hrivnacova; IPN Orsay |
14 | |
15 | #include "AliMpPadIteratorPtr.h" |
2998a151 |
16 | #include "AliMpVPadIterator.h" |
5f91c9e8 |
17 | |
18 | ClassImp(AliMpPadIteratorPtr) |
19 | |
2998a151 |
20 | //_____________________________________________________________________________ |
5f91c9e8 |
21 | AliMpPadIteratorPtr::AliMpPadIteratorPtr(AliMpVPadIterator* it) |
22 | : fIterator(it) |
23 | {} |
24 | |
2998a151 |
25 | //_____________________________________________________________________________ |
26 | AliMpPadIteratorPtr::AliMpPadIteratorPtr(const AliMpPadIteratorPtr& right) |
27 | : TObject(right) { |
28 | // |
29 | Fatal("AliMpPadIteratorPtr", "Copy constructor not provided."); |
30 | } |
31 | |
32 | //_____________________________________________________________________________ |
5f91c9e8 |
33 | AliMpPadIteratorPtr::~AliMpPadIteratorPtr() { |
34 | // |
35 | delete fIterator; |
36 | } |
37 | |
2998a151 |
38 | // operators |
39 | |
40 | //_____________________________________________________________________________ |
41 | AliMpPadIteratorPtr& |
42 | AliMpPadIteratorPtr::operator=(const AliMpPadIteratorPtr& right) |
43 | { |
44 | // check assignement to self |
45 | if (this == &right) return *this; |
46 | |
47 | Fatal("operator =", "Assignement operator not provided."); |
48 | |
49 | return *this; |
50 | } |
51 | |