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 //-----------------------------------------------------------------------------
24 /// \class AliMUONCheckItemIterator
26 /// Iterator on AliMUONCheckItem objects
29 /// \author Laurent Aphecetche
30 //-----------------------------------------------------------------------------
33 ClassImp(AliMUONCheckItemIterator)
36 //_____________________________________________________________________________
37 AliMUONCheckItemIterator::AliMUONCheckItemIterator() : TObject(), fIter(0x0)
42 //_____________________________________________________________________________
43 AliMUONCheckItemIterator::AliMUONCheckItemIterator(const AliMUONCheckItem& item)
48 AliMpExMap* m = item.fMissing;
49 fIter = new TExMapIter(m->GetIterator());
52 //_____________________________________________________________________________
53 AliMUONCheckItemIterator::~AliMUONCheckItemIterator()
59 //_____________________________________________________________________________
61 AliMUONCheckItemIterator::First()
63 /// Rewind the iterator
64 if ( fIter) fIter->Reset();
67 //_____________________________________________________________________________
69 AliMUONCheckItemIterator::Next()
71 /// Advance one object. Return 0 if ended.
72 if (!fIter) return 0x0;
74 Bool_t ok = fIter->Next(key,value);
77 return reinterpret_cast<TObject*>(value);