AliRoot Core  3dc7879 (3dc7879)
AliMUON2DMapIteratorByI Class Reference

Implementation of TIterator for 2D maps. More...

#include <AliMUON2DMapIteratorByI.h>

Inheritance diagram for AliMUON2DMapIteratorByI:

Public Member Functions

 AliMUON2DMapIteratorByI (const AliMpExMap &theMap, Int_t firstI, Int_t lastI)
 
virtual ~AliMUON2DMapIteratorByI ()
 
virtual TObject * Next ()
 The returned object must not be deleted by the user. More...
 
virtual void Reset ()
 
virtual const TCollection * GetCollection () const
 

Private Member Functions

AliMpExMapIteratorNextIterator ()
 
 AliMUON2DMapIteratorByI (const AliMUON2DMapIteratorByI &rhs)
 Not implemented. More...
 
AliMUON2DMapIteratorByIoperator= (const AliMUON2DMapIteratorByI &rhs)
 Not implemented. More...
 
AliMUON2DMapIteratorByIoperator= (const TIterator &rhs)
 Overriden TIterator virtual operator=. More...
 

Private Attributes

const AliMpExMapfkMap
 Top map we iterate upon. More...
 
AliMpExMapIteratorfIter1
 first iterator More...
 
TIterator * fIter2
 second iterator More...
 
Int_t fFirstI
 start of range for I More...
 
Int_t fLastI
 end of range for I More...
 
Int_t fCurrentI
 current value of I More...
 

Detailed Description

Implementation of TIterator for 2D maps.

Implementation of TIterator for 2D maps

An implementation of TIterator for 2D maps, which can iterate on a range of i values (i being the first element of the couple (i,j) used to index values in the map).

Author
Laurent Aphecetche

Definition at line 23 of file AliMUON2DMapIteratorByI.h.

Constructor & Destructor Documentation

AliMUON2DMapIteratorByI::AliMUON2DMapIteratorByI ( const AliMpExMap theMap,
Int_t  firstI,
Int_t  lastI 
)

default ctor

Definition at line 40 of file AliMUON2DMapIteratorByI.cxx.

AliMUON2DMapIteratorByI::~AliMUON2DMapIteratorByI ( )
virtual

dtor

Definition at line 64 of file AliMUON2DMapIteratorByI.cxx.

AliMUON2DMapIteratorByI::AliMUON2DMapIteratorByI ( const AliMUON2DMapIteratorByI rhs)
private

Not implemented.

Member Function Documentation

const TCollection * AliMUON2DMapIteratorByI::GetCollection ( ) const
virtual

Return 0 as we're not really dealing with a Root TCollection...

Definition at line 73 of file AliMUON2DMapIteratorByI.cxx.

TObject * AliMUON2DMapIteratorByI::Next ( )
virtual

The returned object must not be deleted by the user.

return next object

Definition at line 96 of file AliMUON2DMapIteratorByI.cxx.

AliMpExMapIterator * AliMUON2DMapIteratorByI::NextIterator ( )
private

Get next map (from fIter1) and create an iterator to it

Definition at line 81 of file AliMUON2DMapIteratorByI.cxx.

Referenced by Next(), and Reset().

AliMUON2DMapIteratorByI& AliMUON2DMapIteratorByI::operator= ( const AliMUON2DMapIteratorByI rhs)
private

Not implemented.

AliMUON2DMapIteratorByI & AliMUON2DMapIteratorByI::operator= ( const TIterator &  rhs)
private

Overriden TIterator virtual operator=.

Definition at line 55 of file AliMUON2DMapIteratorByI.cxx.

void AliMUON2DMapIteratorByI::Reset ( void  )
virtual

rewind the iterator

Definition at line 116 of file AliMUON2DMapIteratorByI.cxx.

Member Data Documentation

Int_t AliMUON2DMapIteratorByI::fCurrentI
private

current value of I

Definition at line 54 of file AliMUON2DMapIteratorByI.h.

Referenced by NextIterator(), and Reset().

Int_t AliMUON2DMapIteratorByI::fFirstI
private

start of range for I

Definition at line 52 of file AliMUON2DMapIteratorByI.h.

AliMpExMapIterator* AliMUON2DMapIteratorByI::fIter1
private

first iterator

Definition at line 50 of file AliMUON2DMapIteratorByI.h.

Referenced by NextIterator(), Reset(), and ~AliMUON2DMapIteratorByI().

TIterator* AliMUON2DMapIteratorByI::fIter2
private

second iterator

Definition at line 51 of file AliMUON2DMapIteratorByI.h.

Referenced by Next(), Reset(), and ~AliMUON2DMapIteratorByI().

const AliMpExMap* AliMUON2DMapIteratorByI::fkMap
private

Top map we iterate upon.

Definition at line 49 of file AliMUON2DMapIteratorByI.h.

Int_t AliMUON2DMapIteratorByI::fLastI
private

end of range for I

Definition at line 53 of file AliMUON2DMapIteratorByI.h.

Referenced by NextIterator().


The documentation for this class was generated from the following files: