]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUON1DArray.cxx
- Adapted comments for Doxygen
[u/mrichter/AliRoot.git] / MUON / AliMUON1DArray.cxx
index b852543c5c1f8cd2cab94f749e533ccdc8b12399..a5b2ee496aca19573b31c8e5587a20585d544995 100644 (file)
 #include "TObjArray.h"
 
 ///
+/// \class AliMUON1DArray
 /// This class is simply a wrapper to a TObjArray, offering in addition a
 /// control over the replacement policy when you add
 /// something to it.
 ///
+/// \author Laurent Aphecetche
 
+/// \cond CLASSIMP
 ClassImp(AliMUON1DArray)
+/// \endcond
 
 //_____________________________________________________________________________
 AliMUON1DArray::AliMUON1DArray(Int_t theSize)
 : AliMUONV1DStore(),
   fArray(0x0)
 {
-  // 
-  // Default ctor
-  //
+/// Default ctor
+
   if ( theSize ) 
   {
     fArray = new TObjArray(theSize);
@@ -47,6 +50,8 @@ AliMUON1DArray::AliMUON1DArray(const AliMUON1DArray& other)
 : AliMUONV1DStore(),
   fArray(0x0)
 {
+/// Copy constructor
+
   other.CopyTo(*this);
 }
 
@@ -54,6 +59,8 @@ AliMUON1DArray::AliMUON1DArray(const AliMUON1DArray& other)
 AliMUON1DArray&
 AliMUON1DArray::operator=(const AliMUON1DArray& other)
 {
+/// Assignment operator
+
   other.CopyTo(*this);
   return *this;
 }
@@ -61,9 +68,8 @@ AliMUON1DArray::operator=(const AliMUON1DArray& other)
 //_____________________________________________________________________________
 AliMUON1DArray::~AliMUON1DArray()
 {
-  //
-  // dtor, we're the owner of our internal array.
-  //
+/// dtor, we're the owner of our internal array.
+
   delete fArray;
 }
 
@@ -71,9 +77,8 @@ AliMUON1DArray::~AliMUON1DArray()
 void
 AliMUON1DArray::CopyTo(AliMUON1DArray& dest) const
 {
-  //
-  // Make a deep copy
-  //
+/// Make a deep copy
+
   delete dest.fArray;
   dest.fArray = new TObjArray;
   dest.fArray->SetOwner(kTRUE);
@@ -87,9 +92,8 @@ AliMUON1DArray::CopyTo(AliMUON1DArray& dest) const
 TObject* 
 AliMUON1DArray::Get(Int_t i) const
 {
-  //
-  // Get the object located at index i, if it exists, and if i is correct.
-  //
+/// Get the object located at index i, if it exists, and if i is correct.
+
   if ( i >= 0 && i < fArray->GetSize() )
   {
     return fArray->At(i);
@@ -102,11 +106,10 @@ AliMUON1DArray::Get(Int_t i) const
 Bool_t 
 AliMUON1DArray::Set(Int_t i, TObject* object, Bool_t replace)
 {
-  //
-  // Set the object located at i
-  // If replace=kFALSE and there's already an object at location i,
-  // this method fails and returns kFALSE, otherwise it returns kTRUE
-  //
+/// Set the object located at i
+/// If replace=kFALSE and there's already an object at location i,
+/// this method fails and returns kFALSE, otherwise it returns kTRUE
+
   if ( i >= 0 && i < fArray->GetSize() )
   {
     TObject* o = Get(i);