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 "AliMUON1DMapIterator.h"
19 #include "AliMpExMap.h"
21 #include "AliMpIntPair.h"
22 #include "AliMUONObjectPair.h"
23 #include "AliMpExMap.h"
25 /// \class AliMUON1DMapIterator
26 /// Implementation of AliMUONVDataIterator for 1Dmaps
28 /// A simple implementation of VDataIterator for 1Dmaps.
30 /// \author Laurent Aphecetche
33 ClassImp(AliMUON1DMapIterator)
36 //_____________________________________________________________________________
37 AliMUON1DMapIterator::AliMUON1DMapIterator(AliMpExMap& theMap)
38 : AliMUONVDataIterator(),
39 fIter(theMap.GetIterator()),
46 //_____________________________________________________________________________
47 AliMUON1DMapIterator::~AliMUON1DMapIterator()
52 //_____________________________________________________________________________
54 AliMUON1DMapIterator::Next()
59 Bool_t ok = fIter.Next(key,value);
61 Int_t i = (Int_t)(key & 0xFFFF);
62 TObject* o = reinterpret_cast<TObject*>(value);
64 return new AliMUONObjectPair(new AliMpIntPair(i,0),o,
65 kTRUE, /* owner of intpair */
66 kFALSE /* but not of o */);
69 //_____________________________________________________________________________
71 AliMUON1DMapIterator::Reset()
73 /// rewind the iterator
77 //_____________________________________________________________________________
79 AliMUON1DMapIterator::Remove()
81 /// to be implemented if needed
82 AliInfo("Not supported yet");