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

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

#include <AliMpMotifPositionPadIterator.h>

Inheritance diagram for AliMpMotifPositionPadIterator:

Public Member Functions

 AliMpMotifPositionPadIterator ()
 
 AliMpMotifPositionPadIterator (const AliMpMotifPosition *motifPos)
 
 AliMpMotifPositionPadIterator (const AliMpMotifPositionPadIterator &right)
 
virtual ~AliMpMotifPositionPadIterator ()
 
AliMpMotifPositionPadIteratoroperator= (const AliMpMotifPositionPadIterator &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
 

Private Attributes

const AliMpMotifPositionfkMotifPos
 the AliMpMotifPosition over which iterate More...
 
AliMpMotifTypePadIterator fIterator
 Iterator over the motif type. More...
 

Detailed Description

An iterator over the pads of a given motif position.

Author
David Guez, Ivana Hrivnacova; IPN Orsay

Definition at line 21 of file AliMpMotifPositionPadIterator.h.

Constructor & Destructor Documentation

AliMpMotifPositionPadIterator::AliMpMotifPositionPadIterator ( )

Default constructor, set the current position to "invalid"

Definition at line 39 of file AliMpMotifPositionPadIterator.cxx.

AliMpMotifPositionPadIterator::AliMpMotifPositionPadIterator ( const AliMpMotifPosition motifPos)

Standard constructor, let *this to invalid position

Definition at line 49 of file AliMpMotifPositionPadIterator.cxx.

AliMpMotifPositionPadIterator::AliMpMotifPositionPadIterator ( const AliMpMotifPositionPadIterator right)

Copy constructor

Definition at line 59 of file AliMpMotifPositionPadIterator.cxx.

AliMpMotifPositionPadIterator::~AliMpMotifPositionPadIterator ( )
virtual

Destructor

Definition at line 70 of file AliMpMotifPositionPadIterator.cxx.

Member Function Documentation

AliMpPad AliMpMotifPositionPadIterator::CurrentItem ( ) const
virtual

Return current pad.

Return current pad.

Implements AliMpVPadIterator.

Definition at line 145 of file AliMpMotifPositionPadIterator.cxx.

Referenced by AliMpSectorPadIterator::CurrentItem().

void AliMpMotifPositionPadIterator::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 114 of file AliMpMotifPositionPadIterator.cxx.

Referenced by AliMpSectorPadIterator::ResetToCurrentMotifPosition().

void AliMpMotifPositionPadIterator::Invalidate ( )
virtual

Invalidate iterator (.

Let the iterator point to the invalid position

Implements AliMpVPadIterator.

Definition at line 173 of file AliMpMotifPositionPadIterator.cxx.

Referenced by First(), and AliMpSectorPadIterator::Invalidate().

Bool_t AliMpMotifPositionPadIterator::IsDone ( ) const
virtual

Is iterator done.

Is the iterator in the end?

Implements AliMpVPadIterator.

Definition at line 137 of file AliMpMotifPositionPadIterator.cxx.

Referenced by AliMpSectorPadIterator::Next().

Bool_t AliMpMotifPositionPadIterator::IsValid ( ) const
private

Is the iterator in a valid position?

Definition at line 102 of file AliMpMotifPositionPadIterator.cxx.

Referenced by IsDone().

void AliMpMotifPositionPadIterator::Next ( )
virtual

Set iterator to the next pad.

Move the iterator to the next valid pad.

Implements AliMpVPadIterator.

Definition at line 129 of file AliMpMotifPositionPadIterator.cxx.

Referenced by AliMpSectorPadIterator::Next().

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

Assignment operator

Definition at line 79 of file AliMpMotifPositionPadIterator.cxx.

Member Data Documentation

AliMpMotifTypePadIterator AliMpMotifPositionPadIterator::fIterator
private

Iterator over the motif type.

Definition at line 45 of file AliMpMotifPositionPadIterator.h.

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

const AliMpMotifPosition* AliMpMotifPositionPadIterator::fkMotifPos
private

the AliMpMotifPosition over which iterate

Definition at line 44 of file AliMpMotifPositionPadIterator.h.

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


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