AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTOTCAStoreIterator Class Reference

Iterator on a store composed of a TObjArray of TClonesArrays. More...

#include <AliMUONTOTCAStoreIterator.h>

Inheritance diagram for AliMUONTOTCAStoreIterator:

Public Member Functions

 AliMUONTOTCAStoreIterator (const TObjArray *a, Int_t firstChamberId, Int_t lastChamberId)
 
 AliMUONTOTCAStoreIterator (const AliMUONTOTCAStoreIterator &rhs)
 
AliMUONTOTCAStoreIteratoroperator= (const TIterator &rhs)
 
AliMUONTOTCAStoreIteratoroperator= (const AliMUONTOTCAStoreIterator &rhs)
 
virtual ~AliMUONTOTCAStoreIterator ()
 
virtual const TCollection * GetCollection () const
 
virtual TObject * Next ()
 
virtual void Reset ()
 

Private Member Functions

void CopyTo (AliMUONTOTCAStoreIterator &destination) const
 

Private Attributes

const TObjArrayfkData
 ! Pointer to data accessor More...
 
Int_t fFirstChamberId
 ! First chamber to iterate on More...
 
Int_t fLastChamberId
 ! Last chamber to iterate on More...
 
TClonesArray * fCurrentTCA
 ! TClonesArray of the current chamber More...
 
Int_t fCurrentTCAIndex
 ! Current position within fCurrentTCA array More...
 
Int_t fCurrentChamberId
 ! current chamber id More...
 

Detailed Description

Iterator on a store composed of a TObjArray of TClonesArrays.

An iterator to access TObject stored in a TObjArray of TClonesArray

Author
Laurent Aphecetche, Subatech

Definition at line 20 of file AliMUONTOTCAStoreIterator.h.

Constructor & Destructor Documentation

AliMUONTOTCAStoreIterator::AliMUONTOTCAStoreIterator ( const TObjArray a,
Int_t  firstChamberId,
Int_t  lastChamberId 
)

Standard constructor

Definition at line 37 of file AliMUONTOTCAStoreIterator.cxx.

AliMUONTOTCAStoreIterator::AliMUONTOTCAStoreIterator ( const AliMUONTOTCAStoreIterator rhs)

Copy constructor

Definition at line 75 of file AliMUONTOTCAStoreIterator.cxx.

AliMUONTOTCAStoreIterator::~AliMUONTOTCAStoreIterator ( )
virtual

Destructor

Definition at line 91 of file AliMUONTOTCAStoreIterator.cxx.

Member Function Documentation

void AliMUONTOTCAStoreIterator::CopyTo ( AliMUONTOTCAStoreIterator destination) const
private

Copy *this to destination

Definition at line 108 of file AliMUONTOTCAStoreIterator.cxx.

Referenced by AliMUONTOTCAStoreIterator(), and operator=().

const TCollection * AliMUONTOTCAStoreIterator::GetCollection ( ) const
virtual

The top level collection we're iterating upon, i.e. a TObjArray

Reimplemented in AliMUONDigitStoreV1Iterator.

Definition at line 121 of file AliMUONTOTCAStoreIterator.cxx.

TObject * AliMUONTOTCAStoreIterator::Next ( )
virtual

Find and return next element in the store

Reimplemented in AliMUONDigitStoreV1Iterator.

Definition at line 129 of file AliMUONTOTCAStoreIterator.cxx.

Referenced by AliMUONDigitStoreV1Iterator::Next().

AliMUONTOTCAStoreIterator & AliMUONTOTCAStoreIterator::operator= ( const TIterator &  rhs)

Overriden operator= (imposed by Root's declaration of TIterator ?)

Definition at line 55 of file AliMUONTOTCAStoreIterator.cxx.

AliMUONTOTCAStoreIterator & AliMUONTOTCAStoreIterator::operator= ( const AliMUONTOTCAStoreIterator rhs)

Assignment operator

Definition at line 98 of file AliMUONTOTCAStoreIterator.cxx.

void AliMUONTOTCAStoreIterator::Reset ( void  )
virtual

Reset the iterator

Definition at line 161 of file AliMUONTOTCAStoreIterator.cxx.

Member Data Documentation

Int_t AliMUONTOTCAStoreIterator::fCurrentChamberId
private

! current chamber id

Definition at line 44 of file AliMUONTOTCAStoreIterator.h.

Referenced by CopyTo(), Next(), and Reset().

TClonesArray* AliMUONTOTCAStoreIterator::fCurrentTCA
private

! TClonesArray of the current chamber

Definition at line 42 of file AliMUONTOTCAStoreIterator.h.

Referenced by CopyTo(), Next(), and Reset().

Int_t AliMUONTOTCAStoreIterator::fCurrentTCAIndex
private

! Current position within fCurrentTCA array

Definition at line 43 of file AliMUONTOTCAStoreIterator.h.

Referenced by CopyTo(), Next(), and Reset().

Int_t AliMUONTOTCAStoreIterator::fFirstChamberId
private

! First chamber to iterate on

Definition at line 40 of file AliMUONTOTCAStoreIterator.h.

Referenced by CopyTo(), and Reset().

const TObjArray* AliMUONTOTCAStoreIterator::fkData
private

! Pointer to data accessor

Definition at line 39 of file AliMUONTOTCAStoreIterator.h.

Referenced by CopyTo(), GetCollection(), and Next().

Int_t AliMUONTOTCAStoreIterator::fLastChamberId
private

! Last chamber to iterate on

Definition at line 41 of file AliMUONTOTCAStoreIterator.h.

Referenced by CopyTo(), and Next().


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