]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- Adding IsOwner method to explicitely advertise whether or not the object
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Apr 2007 09:15:20 +0000 (09:15 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Apr 2007 09:15:20 +0000 (09:15 +0000)
  returned by Next should be deleted by the client or not.
- Moving from base to calib library
(Laurent)

MUON/AliMUONVDataIterator.h

index 217df47c038c91b946e2f1aae5a507c6b3af971c..9750576f8ff7fcd4accf9286b37745b3eee2f095 100644 (file)
@@ -3,7 +3,7 @@
 
 // $Id$
 
-/// \ingroup base
+/// \ingroup calib
 /// \class AliMUONVDataIterator
 /// \brief Defines an interface of an iterator over muon data structure(s)
 /// 
@@ -22,15 +22,20 @@ public:
   AliMUONVDataIterator();
   virtual ~AliMUONVDataIterator();
   
-  /// \todo add comment
+  /// Return next object in the iteration.
+  /// To know if the client must delete that object, use
+  /// the IsOwner() method
   virtual TObject* Next() = 0;
   
-  /// \todo add comment
+  /// Reset (i.e. Rewind) the iterator
   virtual void Reset() = 0; 
   
-  /// \todo add comment
+  /// Remove the current item (might not be implemented yet)
   virtual Bool_t Remove() = 0;
   
+  /// Whether or not the objects returned by this iterator are to be deleted
+  virtual Bool_t IsOwner() const = 0;
+  
   ClassDef(AliMUONVDataIterator,0) // Interface for an iterator on AliMUONData.
 };