Class Reference for E1039 Core & Analysis Software
PHGenEventList.h
Go to the documentation of this file.
1 #ifndef PHGENEVENTLIST_H__
2 #define PHGENEVENTLIST_H__
3 
4 #include "PHGenEvent.h"
5 
6 #include <phool/phool.h>
7 #include <phool/PHObject.h>
8 
9 #include <iostream>
10 
11 class PHGenEventList : public PHObject {
12 
13 public:
14  virtual ~PHGenEventList() {}
15 
16  virtual size_t size() const {PHOOL_VIRTUAL_WARNING; return 0;}
17  virtual const PHGenEvent* at(size_t i) const {PHOOL_VIRTUAL_WARNING; return NULL;}
18  virtual PHGenEvent* at(size_t i) {PHOOL_VIRTUAL_WARNING; return NULL;}
19 
20  virtual bool has(unsigned int id) const {PHOOL_VIRTUAL_WARNING; return false;}
21  virtual size_t find(unsigned int id) const {PHOOL_VIRTUAL_WARNING; return size();}
22  virtual const PHGenEvent* fetch(unsigned int id) const {PHOOL_VIRTUAL_WARNING; return NULL;}
23  virtual PHGenEvent* fetch(unsigned int id) {PHOOL_VIRTUAL_WARNING; return NULL;}
24 
25  virtual unsigned int generate_id() const {PHOOL_VIRTUAL_WARNING; return 0;}
26  virtual void insert(const PHGenEvent *event) {PHOOL_VIRTUAL_WARNING;}
27  virtual void remove(size_t i) {PHOOL_VIRTUAL_WARNING;}
28  virtual void clear() {PHOOL_VIRTUAL_WARNING;}
29 
30  virtual void identify(std::ostream& out = std::cout) const {
31  out << "PHGenEventList" << std::endl;
32  }
33  virtual void print(std::ostream& os = std::cout) const {PHOOL_VIRTUAL_WARNING;}
34  virtual void Reset() {PHOOL_VIRTUAL_WARNING;}
35 
36 protected:
38 
39 private:
40  ClassDef(PHGenEventList,1)
41 };
42 
43 #endif // __PHGENEVENTLIST_H__
#define NULL
Definition: Pdb.h:9
virtual bool has(unsigned int id) const
virtual PHGenEvent * at(size_t i)
virtual unsigned int generate_id() const
virtual size_t find(unsigned int id) const
virtual void print(std::ostream &os=std::cout) const
virtual const PHGenEvent * at(size_t i) const
virtual void clear()
virtual ~PHGenEventList()
virtual void identify(std::ostream &out=std::cout) const
virtual size_t size() const
virtual void remove(size_t i)
virtual PHGenEvent * fetch(unsigned int id)
virtual void Reset()
Clear Event.
virtual const PHGenEvent * fetch(unsigned int id) const
virtual void insert(const PHGenEvent *event)
#define PHOOL_VIRTUAL_WARNING
Definition: phool.h:25