1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 #include "AliMUONCheckItemIterator.h"
20 #include "AliMpExMap.h"
21 #include "AliMUONCheckItem.h"
23 /// \class AliMUONCheckItemIterator
25 /// Iterator on AliMUONCheckItem objects
28 /// \author Laurent Aphecetche
31 ClassImp(AliMUONCheckItemIterator)
34 //_____________________________________________________________________________
35 AliMUONCheckItemIterator::AliMUONCheckItemIterator() : TObject(), fIter(0x0)
40 //_____________________________________________________________________________
41 AliMUONCheckItemIterator::AliMUONCheckItemIterator(const AliMUONCheckItem& item)
46 AliMpExMap* m = item.fMissing;
47 fIter = new TExMapIter(m->GetIterator());
50 //_____________________________________________________________________________
51 AliMUONCheckItemIterator::~AliMUONCheckItemIterator()
57 //_____________________________________________________________________________
59 AliMUONCheckItemIterator::First()
61 /// Rewind the iterator
62 if ( fIter) fIter->Reset();
65 //_____________________________________________________________________________
67 AliMUONCheckItemIterator::Next()
69 /// Advance one object. Return 0 if ended.
70 if (!fIter) return 0x0;
72 Bool_t ok = fIter->Next(key,value);
75 return reinterpret_cast<TObject*>(value);