1 #ifndef EVENT_PTR_LIST_HH 2 #define EVENT_PTR_LIST_HH 25 template<
typename EVENT_TYPE>
46 virtual EVENT_TYPE
getEvent(
unsigned int i)
const{
63 if(
this == &other)
return *
this;
65 for(
unsigned int i=0; i<other.
size(); i++){
76 virtual unsigned int size()
const{
88 virtual bool Add(
const EVENT_TYPE& evt){
101 if(otherList.
empty())
return false;
102 for(
unsigned int i=0; i < otherList.
size(); i++){
virtual const EVENT_TYPE & getEventRef(unsigned int i) const
EventPtrList(const EVENT_TYPE &evt)
void resize(unsigned int N)
void push_back(const MINT::counted_ptr< EVENT_TYPE > &c)
virtual bool Add(const MINT::counted_ptr< EVENT_TYPE > &evt)
virtual bool Add(const EVENT_TYPE &evt)
virtual EVENT_TYPE & getEventRef(unsigned int i)
virtual unsigned int size() const
virtual bool Add(const EventPtrList< EVENT_TYPE > &otherList)
MINT::counted_ptr< EVENT_TYPE > & at(unsigned int i)
EventPtrList< EVENT_TYPE > & operator=(const EventPtrList< EVENT_TYPE > &other)
virtual EVENT_TYPE getEvent(unsigned int i) const
virtual MINT::counted_ptr< EVENT_TYPE > popLastEventPtr()
virtual counted_ptr< EVENT_TYPE > getPtr(unsigned int i) const
EventPtrList(const EventPtrList< EVENT_TYPE > &other)