+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
// $Id$
-// Category: basic
-//
-// Class AliMpVIndexed
-// -------------------
-// Class that defines the limits of global pad indices.
-//
-// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
+// $MpId: AliMpVIndexed.h,v 1.7 2006/05/24 13:58:07 ivana Exp $
+
+/// \ingroup basic
+/// \class AliMpVIndexed
+/// \brief Base class that defines the limits of global pad indices.
+///
+/// \author David Guez, Ivana Hrivnacova; IPN Orsay
#ifndef ALI_MP_V_INDEXED_H
#define ALI_MP_V_INDEXED_H
class AliMpVIndexed : public TObject
{
public:
- AliMpVIndexed(AliMpIntPair lowLimit, AliMpIntPair highLimit);
+ AliMpVIndexed(const AliMpIntPair& lowLimit, const AliMpIntPair& highLimit);
AliMpVIndexed();
virtual ~AliMpVIndexed();
// methods
+ /// Create iterator over this element
virtual AliMpVPadIterator* CreateIterator() const = 0;
virtual AliMpIntPair GlobalIndices(const AliMpIntPair& localIndices) const;
// set methods
- void SetLowIndicesLimit(AliMpIntPair limit);
- void SetHighIndicesLimit(AliMpIntPair limit);
+ void SetLowIndicesLimit(const AliMpIntPair& limit);
+ void SetHighIndicesLimit(const AliMpIntPair& limit);
// get methods
Bool_t HasIndices(const AliMpIntPair& indices) const;
private:
// data members
- AliMpIntPair fLowIndicesLimit; // the lowest global pad indices
- AliMpIntPair fHighIndicesLimit; // the hihgest global pad indices
+ AliMpIntPair fLowIndicesLimit; ///< the lowest global pad indices
+ AliMpIntPair fHighIndicesLimit; ///< the hihgest global pad indices
ClassDef(AliMpVIndexed,1) // A motif position
};
// inline functions
-inline void AliMpVIndexed::SetLowIndicesLimit(AliMpIntPair limit)
+/// Set low indices limit
+inline void AliMpVIndexed::SetLowIndicesLimit(const AliMpIntPair& limit)
{ fLowIndicesLimit = limit; }
-inline void AliMpVIndexed::SetHighIndicesLimit(AliMpIntPair limit)
+/// Set high indices limit
+inline void AliMpVIndexed::SetHighIndicesLimit(const AliMpIntPair& limit)
{ fHighIndicesLimit = limit; }
+/// Return low indices limit
inline AliMpIntPair AliMpVIndexed::GetLowIndicesLimit() const
{ return fLowIndicesLimit; }
+/// Return high indices limit
inline AliMpIntPair AliMpVIndexed::GetHighIndicesLimit() const
{ return fHighIndicesLimit; }