AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpMotifTypePadIterator.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 // $Id$
5 // $MpId: AliMpMotifTypePadIterator.h,v 1.8 2006/05/24 13:58:18 ivana Exp $
6 
12 
13 #ifndef ALI_MP_MOTIF_TYPE_PAD_ITERATOR_H
14 #define ALI_MP_MOTIF_TYPE_PAD_ITERATOR_H
15 
16 #include "AliMpVPadIterator.h"
17 
18 class AliMpMotifType;
19 
21 {
22  public:
24  AliMpMotifTypePadIterator(const AliMpMotifType* motifType);
26  virtual ~AliMpMotifTypePadIterator();
27 
28  // operators
31 
32  virtual void First();
33  virtual void Next();
34  virtual Bool_t IsDone() const;
35  virtual AliMpPad CurrentItem() const;
36  virtual void Invalidate();
37 
38  private:
39  // private methods
40  Bool_t FindFirstPadInLine(Int_t ix, Int_t iy,
41  Int_t& newIx, Int_t& newIy) const;
42  Bool_t IsValid() const;
43 
44  // private data members
46  Int_t fCurrentIx;
47  Int_t fCurrentIy;
48 
49  ClassDef(AliMpMotifTypePadIterator,2) // iterator over motif's pads
50 };
51 
52 #endif // ALI_MP_MOTIF_TYPE_PAD_ITERATOR_H
virtual void Next()
Set iterator to the next pad.
virtual Bool_t IsDone() const
Is iterator done.
An iterator over the pads of a given motif type.
virtual void First()
Set iterator to the first pad.
Int_t fCurrentIy
the current iy position inside the motif type
Int_t fCurrentIx
the current ix position inside the motif type
virtual AliMpPad CurrentItem() const
Return current pad.
const AliMpMotifType * fkMotifType
the motif type over which iterate
An interface for an iterator over pads.
Class which encapsuate all information about a pad.
Definition: AliMpPad.h:22
virtual void Invalidate()
Invalidate iterator (.
AliMpMotifTypePadIterator & operator=(const AliMpMotifTypePadIterator &right)
Class that defines the motif properties.
Bool_t FindFirstPadInLine(Int_t ix, Int_t iy, Int_t &newIx, Int_t &newIy) const