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

An iterator over the pads of a given motif type. More...

#include <AliMpMotifTypePadIterator.h>

Inheritance diagram for AliMpMotifTypePadIterator:

Public Member Functions

 AliMpMotifTypePadIterator ()
 
 AliMpMotifTypePadIterator (const AliMpMotifType *motifType)
 
 AliMpMotifTypePadIterator (const AliMpMotifTypePadIterator &right)
 
virtual ~AliMpMotifTypePadIterator ()
 
AliMpMotifTypePadIteratoroperator= (const AliMpMotifTypePadIterator &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 FindFirstPadInLine (Int_t ix, Int_t iy, Int_t &newIx, Int_t &newIy) const
 
Bool_t IsValid () const
 

Private Attributes

const AliMpMotifTypefkMotifType
 the motif type over which iterate More...
 
Int_t fCurrentIx
 the current ix position inside the motif type More...
 
Int_t fCurrentIy
 the current iy position inside the motif type More...
 

Detailed Description

An iterator over the pads of a given motif type.

Author
David Guez, Ivana Hrivnacova; IPN Orsay

Definition at line 20 of file AliMpMotifTypePadIterator.h.

Constructor & Destructor Documentation

AliMpMotifTypePadIterator::AliMpMotifTypePadIterator ( )

Default constructor, set the current position to "invalid"

Definition at line 37 of file AliMpMotifTypePadIterator.cxx.

AliMpMotifTypePadIterator::AliMpMotifTypePadIterator ( const AliMpMotifType motifType)

Standard constructor, let *this to invalid position

Definition at line 47 of file AliMpMotifTypePadIterator.cxx.

AliMpMotifTypePadIterator::AliMpMotifTypePadIterator ( const AliMpMotifTypePadIterator right)

Copy constructor

Definition at line 58 of file AliMpMotifTypePadIterator.cxx.

AliMpMotifTypePadIterator::~AliMpMotifTypePadIterator ( )
virtual

Destructor

Definition at line 70 of file AliMpMotifTypePadIterator.cxx.

Member Function Documentation

AliMpPad AliMpMotifTypePadIterator::CurrentItem ( ) const
virtual

Return current pad.

Return current pad.

Implements AliMpVPadIterator.

Definition at line 202 of file AliMpMotifTypePadIterator.cxx.

Referenced by AliMpMotifPositionPadIterator::CurrentItem().

Bool_t AliMpMotifTypePadIterator::FindFirstPadInLine ( Int_t  ix,
Int_t  iy,
Int_t &  newIx,
Int_t &  newIy 
) const
private

Find the indices of the first pad in the same line as the indices, and in column, at least equal, to the one of indices

Definition at line 104 of file AliMpMotifTypePadIterator.cxx.

Referenced by Next().

void AliMpMotifTypePadIterator::First ( )
virtual

Set iterator to the first pad.

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

Implements AliMpVPadIterator.

Definition at line 144 of file AliMpMotifTypePadIterator.cxx.

Referenced by AliMpMotifPositionPadIterator::First(), and AliMpRowSegment::SetOffset().

void AliMpMotifTypePadIterator::Invalidate ( )
virtual

Invalidate iterator (.

Let the iterator point to the invalid position

Implements AliMpVPadIterator.

Definition at line 215 of file AliMpMotifTypePadIterator.cxx.

Referenced by First(), AliMpMotifPositionPadIterator::Invalidate(), and Next().

Bool_t AliMpMotifTypePadIterator::IsDone ( ) const
virtual

Is iterator done.

Is the iterator in the end ?

Implements AliMpVPadIterator.

Definition at line 194 of file AliMpMotifTypePadIterator.cxx.

Referenced by AliMpMotifPositionPadIterator::IsValid().

Bool_t AliMpMotifTypePadIterator::IsValid ( ) const
private

Is the iterator in a valid position?

Definition at line 132 of file AliMpMotifTypePadIterator.cxx.

Referenced by IsDone(), and Next().

void AliMpMotifTypePadIterator::Next ( )
virtual

Set iterator to the next pad.

Move the iterator to the next valid pad.

Implements AliMpVPadIterator.

Definition at line 168 of file AliMpMotifTypePadIterator.cxx.

Referenced by First(), and AliMpMotifPositionPadIterator::Next().

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

Assignment operator.
If the right hand iterator isn't of good type the current operator is invalidated

Definition at line 79 of file AliMpMotifTypePadIterator.cxx.

Member Data Documentation

Int_t AliMpMotifTypePadIterator::fCurrentIx
private

the current ix position inside the motif type

Definition at line 46 of file AliMpMotifTypePadIterator.h.

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

Int_t AliMpMotifTypePadIterator::fCurrentIy
private

the current iy position inside the motif type

Definition at line 47 of file AliMpMotifTypePadIterator.h.

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

const AliMpMotifType* AliMpMotifTypePadIterator::fkMotifType
private

the motif type over which iterate

Definition at line 45 of file AliMpMotifTypePadIterator.h.

Referenced by CurrentItem(), FindFirstPadInLine(), First(), IsValid(), and operator=().


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