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.3 by loizides, Thu Nov 20 17:49:15 2008 UTC vs.
Revision 1.8 by bendavid, Wed Sep 9 03:38:50 2009 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines