]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpMotifPositionPadIterator.cxx
From Laurent
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpMotifPositionPadIterator.cxx
index c11fab71fbb3c65f6a6319592175dc01bbbfc583..c14317ce99f815f2b0f699f80676771ea703c5c4 100755 (executable)
@@ -1,4 +1,20 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
 // $Id$
+// $MpId: AliMpMotifPositionPadIterator.cxx,v 1.5 2005/08/26 15:43:36 ivana Exp $
 // Category: motif
 //
 // Class AliMpMotifPositionPadIterator
@@ -20,7 +36,7 @@ AliMpMotifPositionPadIterator::AliMpMotifPositionPadIterator():
     fMotifPos(0),
     fIterator()
 {
-// default constructor, set the current position to "invalid"
+/// Default constructor, set the current position to "invalid"
 }
 
 //______________________________________________________________________________
@@ -31,7 +47,7 @@ AliMpMotifPositionPadIterator::AliMpMotifPositionPadIterator(
     fMotifPos(motifPos),
     fIterator(motifPos->GetMotif()->GetMotifType())
 {
-// normal constructor, let *this to invalid position
+/// Standard constructor, let *this to invalid position
 }
 
 //______________________________________________________________________________
@@ -42,13 +58,13 @@ AliMpMotifPositionPadIterator::AliMpMotifPositionPadIterator(
     fIterator(right.fIterator)
     
 {
-// copy constructor
+/// Copy constructor
 }
 
 //______________________________________________________________________________
 AliMpMotifPositionPadIterator::~AliMpMotifPositionPadIterator()
 {
-// destructor
+/// Destructor
 }
 
 // operators
@@ -57,14 +73,15 @@ AliMpMotifPositionPadIterator::~AliMpMotifPositionPadIterator()
 AliMpMotifPositionPadIterator& 
 AliMpMotifPositionPadIterator::operator = (const AliMpMotifPositionPadIterator& right)
 {
-// assignement operator
+/// Assignment operator
+
 // if the right hand iterator isn't of good type
 // the current operator is invalidated
 
-  // check assignement to self
+  // check assignment to self
   if (this == &right) return *this;
 
-  // base class assignement
+  // base class assignment
   AliMpVPadIterator::operator=(right);
 
   fMotifPos = right.fMotifPos;
@@ -79,18 +96,20 @@ AliMpMotifPositionPadIterator::operator = (const AliMpMotifPositionPadIterator&
 //______________________________________________________________________________
 Bool_t AliMpMotifPositionPadIterator::IsValid() const
 {
-// Is the iterator in a valid position?
+/// Is the iterator in a valid position?
 
     return (fMotifPos!=0) && (!fIterator.IsDone());
 } 
 
-//public methods
+//
+// public methods
+//
 
 //______________________________________________________________________________
 void AliMpMotifPositionPadIterator::First()
 {
-// Reset the iterator, so that it points to the first available
-// pad in the motif type
+/// Reset the iterator, so that it points to the first available
+/// pad in the motif type
 
     if (!fMotifPos) {
         Invalidate();
@@ -104,21 +123,23 @@ void AliMpMotifPositionPadIterator::First()
 //______________________________________________________________________________
 void AliMpMotifPositionPadIterator::Next()
 {
-// Move the iterator to the next valid pad.
+/// Move the iterator to the next valid pad.
+
   fIterator.Next();
 }
 
 //______________________________________________________________________________
 Bool_t AliMpMotifPositionPadIterator::IsDone() const
 {
-// 
+/// Is the iterator in the end? 
+
   return !IsValid();
 }
 
 //______________________________________________________________________________
 AliMpPad AliMpMotifPositionPadIterator::CurrentItem() const 
 {
-// Returns current pad.
+/// Return current pad.
 
     if (!fMotifPos)
         return AliMpPad::Invalid();
@@ -137,7 +158,8 @@ AliMpPad AliMpMotifPositionPadIterator::CurrentItem() const
 //______________________________________________________________________________
 void AliMpMotifPositionPadIterator::Invalidate()
 {
-// Let the iterator points to the invalid position
+/// Let the iterator point to the invalid position
+
   fIterator.Invalidate();
 }