MINT2
IEventList.h
Go to the documentation of this file.
1 #ifndef IEVENTLISTB_HH
2 #define IEVENTLISTB_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:17:54 GMT
5 
6 #include "Mint/Utils.h"
8 
9 /*
10  looks like array
11 */
12 
13 namespace MINT{
14 
15 template<typename EVENT_TYPE>
16  class IEventList : virtual public IMinimalEventList<EVENT_TYPE>
17  // returns reference (for memory-resident lists)
18 {
19  protected:
21  public:
22 
23  virtual const EVENT_TYPE& operator[](unsigned int i) const=0;
24  virtual EVENT_TYPE& operator[](unsigned int i)=0;
25 
26  // included through IMinimalEventList:
27  // virtual unsigned int size() const=0;
28  // virtual EVENT_TYPE getEvent(unsigned int i) const=0;
29  // virtual bool Add(const EVENT_TYPE & evt)=0;
30 
31  virtual ~IEventList(){}
32 };
33 }//namespace MINT
34 #endif
35 //
virtual ~IEventList()
Definition: IEventList.h:31
virtual const EVENT_TYPE & operator[](unsigned int i) const =0