AliRoot Core  edcc906 (edcc906)
AliMpSectorAreaHPadIterator Class Reference

An iterator over the pads inside a given area in a sector in horizontal direction. More...

#include <AliMpSectorAreaHPadIterator.h>

Inheritance diagram for AliMpSectorAreaHPadIterator:

Public Member Functions

 AliMpSectorAreaHPadIterator (const AliMpSectorSegmentation *segmentation, const AliMpArea &area)
 
 AliMpSectorAreaHPadIterator (const AliMpSectorAreaHPadIterator &src)
 
 AliMpSectorAreaHPadIterator ()
 
virtual ~AliMpSectorAreaHPadIterator ()
 
AliMpSectorAreaHPadIteratoroperator= (const AliMpSectorAreaHPadIterator &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

Bool_t IsValid () const
 
void MoveUp ()
 

Private Attributes

const AliMpSectorSegmentationfkSegmentation
 the sector segmentation More...
 
AliMpArea fkArea
 over which we iterate More...
 
AliMpPad fCurrentPad
 the current pad More...
 
Double_t fCurrentRowPosition
 the current row position More...
 

Detailed Description

An iterator over the pads inside a given area in a sector in horizontal direction.

Author
David Guez, Ivana Hrivnacova; IPN Orsay

Definition at line 23 of file AliMpSectorAreaHPadIterator.h.

Constructor & Destructor Documentation

AliMpSectorAreaHPadIterator::AliMpSectorAreaHPadIterator ( const AliMpSectorSegmentation segmentation,
const AliMpArea area 
)

Standard constructor, start in invalid position

Definition at line 40 of file AliMpSectorAreaHPadIterator.cxx.

AliMpSectorAreaHPadIterator::AliMpSectorAreaHPadIterator ( const AliMpSectorAreaHPadIterator src)

Copy constructor

Definition at line 53 of file AliMpSectorAreaHPadIterator.cxx.

AliMpSectorAreaHPadIterator::AliMpSectorAreaHPadIterator ( )

Default constructor.

Definition at line 67 of file AliMpSectorAreaHPadIterator.cxx.

AliMpSectorAreaHPadIterator::~AliMpSectorAreaHPadIterator ( )
virtual

Destructor

Definition at line 78 of file AliMpSectorAreaHPadIterator.cxx.

Member Function Documentation

AliMpPad AliMpSectorAreaHPadIterator::CurrentItem ( ) const
virtual

Return current pad.

Return current pad.

Implements AliMpVPadIterator.

Definition at line 199 of file AliMpSectorAreaHPadIterator.cxx.

void AliMpSectorAreaHPadIterator::First ( )
virtual

Set iterator to the first pad.

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

Implements AliMpVPadIterator.

Definition at line 142 of file AliMpSectorAreaHPadIterator.cxx.

void AliMpSectorAreaHPadIterator::Invalidate ( )
virtual

Invalidate iterator (.

Let the iterator point to the invalid position

Implements AliMpVPadIterator.

Definition at line 206 of file AliMpSectorAreaHPadIterator.cxx.

Bool_t AliMpSectorAreaHPadIterator::IsDone ( ) const
virtual

Is iterator done.

Is the iterator in the end ?

Implements AliMpVPadIterator.

Definition at line 191 of file AliMpSectorAreaHPadIterator.cxx.

Bool_t AliMpSectorAreaHPadIterator::IsValid ( ) const
private

Is the iterator in a valid position?

Definition at line 112 of file AliMpSectorAreaHPadIterator.cxx.

Referenced by IsDone(), and Next().

void AliMpSectorAreaHPadIterator::MoveUp ( )
private

Increase the current row position and searches the first valid pad.

Definition at line 120 of file AliMpSectorAreaHPadIterator.cxx.

Referenced by First(), and Next().

void AliMpSectorAreaHPadIterator::Next ( )
virtual

Set iterator to the next pad.

Move the iterator to the next valid pad.

Implements AliMpVPadIterator.

Definition at line 170 of file AliMpSectorAreaHPadIterator.cxx.

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

Assignment operator

Definition at line 89 of file AliMpSectorAreaHPadIterator.cxx.

Member Data Documentation

AliMpPad AliMpSectorAreaHPadIterator::fCurrentPad
private

the current pad

Definition at line 54 of file AliMpSectorAreaHPadIterator.h.

Referenced by CurrentItem(), First(), Invalidate(), IsValid(), MoveUp(), Next(), and operator=().

Double_t AliMpSectorAreaHPadIterator::fCurrentRowPosition
private

the current row position

Definition at line 55 of file AliMpSectorAreaHPadIterator.h.

Referenced by First(), Invalidate(), MoveUp(), and operator=().

AliMpArea AliMpSectorAreaHPadIterator::fkArea
private

over which we iterate

(const caused problem with CINT) the area

Definition at line 53 of file AliMpSectorAreaHPadIterator.h.

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

const AliMpSectorSegmentation* AliMpSectorAreaHPadIterator::fkSegmentation
private

the sector segmentation

Definition at line 49 of file AliMpSectorAreaHPadIterator.h.

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


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