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

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

#include <AliMpSectorAreaVPadIterator.h>

Inheritance diagram for AliMpSectorAreaVPadIterator:

Public Member Functions

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

Private Attributes

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

Detailed Description

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

Author
David Guez, Ivana Hrivnacova; IPN Orsay

Definition at line 23 of file AliMpSectorAreaVPadIterator.h.

Constructor & Destructor Documentation

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

Standard constructor, start in invalid position

Definition at line 42 of file AliMpSectorAreaVPadIterator.cxx.

AliMpSectorAreaVPadIterator::AliMpSectorAreaVPadIterator ( const AliMpSectorAreaVPadIterator src)

Copy constructor

Definition at line 55 of file AliMpSectorAreaVPadIterator.cxx.

AliMpSectorAreaVPadIterator::AliMpSectorAreaVPadIterator ( )

Default constructor.

Definition at line 69 of file AliMpSectorAreaVPadIterator.cxx.

AliMpSectorAreaVPadIterator::~AliMpSectorAreaVPadIterator ( )
virtual

Destructor

Definition at line 80 of file AliMpSectorAreaVPadIterator.cxx.

Member Function Documentation

AliMpPad AliMpSectorAreaVPadIterator::CurrentItem ( ) const
virtual

Return current pad.

Return current pad.

Implements AliMpVPadIterator.

Definition at line 200 of file AliMpSectorAreaVPadIterator.cxx.

void AliMpSectorAreaVPadIterator::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 144 of file AliMpSectorAreaVPadIterator.cxx.

void AliMpSectorAreaVPadIterator::Invalidate ( )
virtual

Invalidate iterator (.

Let the iterator point to the invalid position

Implements AliMpVPadIterator.

Definition at line 207 of file AliMpSectorAreaVPadIterator.cxx.

Bool_t AliMpSectorAreaVPadIterator::IsDone ( ) const
virtual

Is iterator done.

Is the iterator in the end ?

Implements AliMpVPadIterator.

Definition at line 192 of file AliMpSectorAreaVPadIterator.cxx.

Bool_t AliMpSectorAreaVPadIterator::IsValid ( ) const
private

Is the iterator in a valid position?

Definition at line 114 of file AliMpSectorAreaVPadIterator.cxx.

Referenced by IsDone(), and Next().

void AliMpSectorAreaVPadIterator::MoveRight ( )
private

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

Definition at line 122 of file AliMpSectorAreaVPadIterator.cxx.

Referenced by First(), and Next().

void AliMpSectorAreaVPadIterator::Next ( )
virtual

Set iterator to the next pad.

Move the iterator to the next valid pad.

Implements AliMpVPadIterator.

Definition at line 171 of file AliMpSectorAreaVPadIterator.cxx.

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

Assignment operator

Definition at line 91 of file AliMpSectorAreaVPadIterator.cxx.

Member Data Documentation

Double_t AliMpSectorAreaVPadIterator::fCurrentColumnPosition
private

the current column position

Definition at line 55 of file AliMpSectorAreaVPadIterator.h.

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

AliMpPad AliMpSectorAreaVPadIterator::fCurrentPad
private

the current pad

Definition at line 54 of file AliMpSectorAreaVPadIterator.h.

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

AliMpArea AliMpSectorAreaVPadIterator::fkArea
private

over which we iterate

(const caused problem with CINT) the area

Definition at line 53 of file AliMpSectorAreaVPadIterator.h.

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

const AliMpSectorSegmentation* AliMpSectorAreaVPadIterator::fkSegmentation
private

the sector segmentation

Definition at line 49 of file AliMpSectorAreaVPadIterator.h.

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


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