![]() |
AliRoot Core
3abf5b4 (3abf5b4)
|
An iterator over the pads of a given motif type. More...
#include <AliMpMotifTypePadIterator.h>
Public Member Functions | |
AliMpMotifTypePadIterator () | |
AliMpMotifTypePadIterator (const AliMpMotifType *motifType) | |
AliMpMotifTypePadIterator (const AliMpMotifTypePadIterator &right) | |
virtual | ~AliMpMotifTypePadIterator () |
AliMpMotifTypePadIterator & | operator= (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... | |
![]() | |
AliMpVPadIterator () | |
AliMpVPadIterator (const AliMpVPadIterator &right) | |
virtual | ~AliMpVPadIterator () |
AliMpVPadIterator & | operator= (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 AliMpMotifType * | fkMotifType |
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... | |
An iterator over the pads of a given motif type.
Definition at line 20 of file AliMpMotifTypePadIterator.h.
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.
|
virtual |
Destructor
Definition at line 70 of file AliMpMotifTypePadIterator.cxx.
|
virtual |
Return current pad.
Return current pad.
Implements AliMpVPadIterator.
Definition at line 202 of file AliMpMotifTypePadIterator.cxx.
Referenced by AliMpMotifPositionPadIterator::CurrentItem().
|
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().
|
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().
|
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().
|
virtual |
Is iterator done.
Is the iterator in the end ?
Implements AliMpVPadIterator.
Definition at line 194 of file AliMpMotifTypePadIterator.cxx.
Referenced by AliMpMotifPositionPadIterator::IsValid().
|
private |
Is the iterator in a valid position?
Definition at line 132 of file AliMpMotifTypePadIterator.cxx.
|
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.
|
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=().
|
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=().
|
private |
the motif type over which iterate
Definition at line 45 of file AliMpMotifTypePadIterator.h.
Referenced by CurrentItem(), FindFirstPadInLine(), First(), IsValid(), and operator=().