ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataCont/interface/BaseCollection.h
Revision: 1.1
Committed: Tue Jul 29 10:36:20 2008 UTC (16 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: MITHEP_2_0_x
Log Message:
Added submodule for containers only

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: BaseCollection.h,v 1.7 2008/07/28 23:13:41 paus Exp $
3     //
4     // BaseCollection
5     //
6     // Base collection class (virtual) to allow efficient resetting in TAM.
7     //
8     // Authors: C.Loizides
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef mithep_BASECOLLECTION_H
12     #define mithep_BASECOLLECTION_H
13    
14     #include <TObject.h>
15    
16     namespace mithep
17     {
18     class BaseCollection : public TObject
19     {
20     public:
21     BaseCollection() {}
22     ~BaseCollection() {}
23    
24     virtual UInt_t GetEntries() const = 0;
25     virtual Bool_t IsOwner() const = 0;
26     virtual void Reset() = 0;
27     virtual void Trim() = 0;
28    
29     ClassDef(BaseCollection,1) // Base class of all our collections
30     };
31     }
32     #endif