AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpSectorPadIterator Class Reference

An iterator over the pads of a sector. More...

#include <AliMpSectorPadIterator.h>

Inheritance diagram for AliMpSectorPadIterator:

Public Member Functions

 AliMpSectorPadIterator ()
 
 AliMpSectorPadIterator (const AliMpSector *sector)
 
 AliMpSectorPadIterator (const AliMpSectorPadIterator &src)
 
virtual ~AliMpSectorPadIterator ()
 
AliMpSectorPadIteratoroperator= (const AliMpSectorPadIterator &right)
 
virtual void First ()
 Set iterator to the first pad. More...
 
virtual void Next ()
 Set iterator to the next pad. More...
 
virtual Bool_t IsDone () const
 Is iterator done. More...
 
virtual AliMpPad CurrentItem () const
 Return current pad. More...
 
virtual void Invalidate ()
 Invalidate iterator (. More...
 
- Public Member Functions inherited from AliMpVPadIterator
 AliMpVPadIterator ()
 
 AliMpVPadIterator (const AliMpVPadIterator &right)
 
virtual ~AliMpVPadIterator ()
 
AliMpVPadIteratoroperator= (const AliMpVPadIterator &right)
 

Private Member Functions

AliMpMotifPositionResetToCurrentMotifPosition ()
 
Bool_t IsValid () const
 

Private Attributes

const AliMpSectorfkSector
 the sector over which to iterate More...
 
UInt_t fCurrentIndex
 the current motif position index More...
 
AliMpMotifPositionfMotifPos
 the current motif position More...
 
AliMpMotifPositionPadIterator fIterator
 iterator over the current motif type More...
 

Detailed Description

An iterator over the pads of a sector.

Author
David Guez, Ivana Hrivnacova; IPN Orsay

Definition at line 23 of file AliMpSectorPadIterator.h.

Constructor & Destructor Documentation

AliMpSectorPadIterator::AliMpSectorPadIterator ( )

Default constructor, set the current position to "invalid"

Definition at line 43 of file AliMpSectorPadIterator.cxx.

AliMpSectorPadIterator::AliMpSectorPadIterator ( const AliMpSector sector)

Standard constructor, set *this to invalid position

Definition at line 54 of file AliMpSectorPadIterator.cxx.

AliMpSectorPadIterator::AliMpSectorPadIterator ( const AliMpSectorPadIterator src)

Copy constructor

Definition at line 65 of file AliMpSectorPadIterator.cxx.

AliMpSectorPadIterator::~AliMpSectorPadIterator ( )
virtual

Destructor

Definition at line 78 of file AliMpSectorPadIterator.cxx.

Member Function Documentation

AliMpPad AliMpSectorPadIterator::CurrentItem ( ) const
virtual

Return current pad.

Return current pad.

Implements AliMpVPadIterator.

Definition at line 186 of file AliMpSectorPadIterator.cxx.

void AliMpSectorPadIterator::First ( )
virtual

Set iterator to the first pad.

Reset the iterator, so that it points to the first available pad in the sector

Implements AliMpVPadIterator.

Definition at line 141 of file AliMpSectorPadIterator.cxx.

void AliMpSectorPadIterator::Invalidate ( )
virtual

Invalidate iterator (.

Let the iterator point to the invalid position

Implements AliMpVPadIterator.

Definition at line 199 of file AliMpSectorPadIterator.cxx.

Referenced by First(), Next(), and ResetToCurrentMotifPosition().

Bool_t AliMpSectorPadIterator::IsDone ( ) const
virtual

Is iterator done.

Is the iterator in the end?

Implements AliMpVPadIterator.

Definition at line 178 of file AliMpSectorPadIterator.cxx.

Bool_t AliMpSectorPadIterator::IsValid ( ) const
private

Is the iterator in a valid position?

Definition at line 129 of file AliMpSectorPadIterator.cxx.

Referenced by CurrentItem(), IsDone(), and Next().

void AliMpSectorPadIterator::Next ( )
virtual

Set iterator to the next pad.

Move the iterator to the next valid pad.

Implements AliMpVPadIterator.

Definition at line 157 of file AliMpSectorPadIterator.cxx.

AliMpSectorPadIterator & AliMpSectorPadIterator::operator= ( const AliMpSectorPadIterator right)

Assignment operator

Definition at line 89 of file AliMpSectorPadIterator.cxx.

AliMpMotifPosition * AliMpSectorPadIterator::ResetToCurrentMotifPosition ( )
private

Find the AliMpMotifType object associated with the triplet (fCurrentRow, fCurrentSeg, fCurrentMotif), place it in the private fMotifType member and return it.

Definition at line 110 of file AliMpSectorPadIterator.cxx.

Referenced by First(), and Next().

Member Data Documentation

UInt_t AliMpSectorPadIterator::fCurrentIndex
private

the current motif position index

Definition at line 48 of file AliMpSectorPadIterator.h.

Referenced by First(), Next(), operator=(), and ResetToCurrentMotifPosition().

AliMpMotifPositionPadIterator AliMpSectorPadIterator::fIterator
private

iterator over the current motif type

Definition at line 50 of file AliMpSectorPadIterator.h.

Referenced by CurrentItem(), Invalidate(), Next(), operator=(), and ResetToCurrentMotifPosition().

const AliMpSector* AliMpSectorPadIterator::fkSector
private

the sector over which to iterate

Definition at line 47 of file AliMpSectorPadIterator.h.

Referenced by First(), IsValid(), operator=(), and ResetToCurrentMotifPosition().

AliMpMotifPosition* AliMpSectorPadIterator::fMotifPos
private

the current motif position

Definition at line 49 of file AliMpSectorPadIterator.h.

Referenced by Invalidate(), IsValid(), operator=(), and ResetToCurrentMotifPosition().


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