ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataCont/interface/Collection.h
(Generate patch)

Comparing UserCode/MitAna/DataCont/interface/Collection.h (file contents):
Revision 1.5 by loizides, Mon Dec 8 15:26:23 2008 UTC vs.
Revision 1.6 by loizides, Wed Dec 10 11:26:52 2008 UTC

# Line 22 | Line 22 | namespace mithep
22        Collection() {}
23        ~Collection() {}
24  
25 <      virtual ArrayElement        *At(UInt_t idx)                       = 0;
26 <      virtual const ArrayElement  *At(UInt_t idx)                 const = 0;
27 <      virtual UInt_t               GetEntries()                   const = 0;
28 <      virtual UInt_t               GetSize()                      const = 0;
25 >      virtual ArrayElement        *At(UInt_t idx)                           = 0;
26 >      virtual const ArrayElement  *At(UInt_t idx)                     const = 0;
27 >      virtual UInt_t               GetEntries()                       const = 0;
28 >      virtual UInt_t               GetSize()                          const = 0;
29        virtual Bool_t               HasObject(const ArrayElement *obj) const = 0;
30 <      virtual Bool_t               IsOwner()                      const = 0;
31 <      void                         Print(Option_t *opt="")        const;
32 <      virtual void                 Reset()                              = 0;
33 <      virtual void                 Trim()                               = 0;
34 <      virtual ArrayElement        *UncheckedAt(UInt_t idx)              = 0;
35 <      virtual const ArrayElement  *UncheckedAt(UInt_t idx)        const = 0;
36 <      virtual ArrayElement        *operator[](UInt_t idx)               = 0;
37 <      virtual const ArrayElement  *operator[](UInt_t idx)         const = 0;
30 >      virtual Bool_t               IsOwner()                          const = 0;
31 >      void                         Print(Option_t *opt="")            const;
32 >      virtual void                 Reset()                                  = 0;
33 >      virtual void                 Trim()                                   = 0;
34 >      virtual ArrayElement        *UncheckedAt(UInt_t idx)                  = 0;
35 >      virtual const ArrayElement  *UncheckedAt(UInt_t idx)            const = 0;
36 >      virtual ArrayElement        *operator[](UInt_t idx)                   = 0;
37 >      virtual const ArrayElement  *operator[](UInt_t idx)             const = 0;
38  
39 <    ClassDefT(Collection,1) // Generic access to a collection of ArrayElements
39 >    ClassDefT(Collection, 1) // Generic access to a collection of ArrayElements
40    };
41   }
42  
# Line 44 | Line 44 | namespace mithep
44   template<class ArrayElement>
45   void mithep::Collection<ArrayElement>::Print(Option_t */*opt*/) const
46   {
47 +  // Print information about this collection.
48 +
49    printf("%s: Contains %d (out of %d) objs\n",
50           GetName(), GetEntries(), GetSize());
51   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines