MINT2
Public Member Functions | List of all members
MINT::EventList< EVENT_TYPE > Class Template Reference

#include <EventList.h>

Inheritance diagram for MINT::EventList< EVENT_TYPE >:
MINT::IEventList< EVENT_TYPE > MINT::PolymorphVector< EVENT_TYPE > MINT::IMinimalEventList< EVENT_TYPE >

Public Member Functions

 EventList ()
 
 EventList (const EventList< EVENT_TYPE > &other)
 
virtual ~EventList ()
 
EventList< EVENT_TYPE > & operator= (const EventList< EVENT_TYPE > &other)
 
virtual EVENT_TYPE & operator[] (unsigned int i)
 
virtual const EVENT_TYPE & operator[] (unsigned int i) const
 
virtual EVENT_TYPE getEvent (unsigned int i) const
 
virtual unsigned int size () const
 
virtual bool Add (const EVENT_TYPE &evt)
 
virtual bool Add (const EventList< EVENT_TYPE > &addList)
 
- Public Member Functions inherited from MINT::IEventList< EVENT_TYPE >
virtual ~IEventList ()
 
- Public Member Functions inherited from MINT::PolymorphVector< EVENT_TYPE >
 PolymorphVector ()
 
 PolymorphVector (unsigned int N)
 
 PolymorphVector (unsigned int N, const EVENT_TYPE &c)
 
 PolymorphVector (const PolymorphVector &other)
 
 PolymorphVector (const typename std::vector< EVENT_TYPE > &other)
 
virtual ~PolymorphVector ()
 
std::vector< EVENT_TYPE > & theVector ()
 
const std::vector< EVENT_TYPE > & theVector () const
 
EVENT_TYPE & operator[] (unsigned int i)
 
const EVENT_TYPE & operator[] (unsigned int i) const
 
EVENT_TYPE & at (unsigned int i)
 
const EVENT_TYPE & at (unsigned int i) const
 
std::vector< EVENT_TYPE >::iterator begin ()
 
std::vector< EVENT_TYPE >::const_iterator begin () const
 
std::vector< EVENT_TYPE >::iterator end ()
 
std::vector< EVENT_TYPE >::const_iterator end () const
 
std::vector< EVENT_TYPE >::iterator find (const EVENT_TYPE &c)
 
std::vector< EVENT_TYPE >::const_iterator find (const EVENT_TYPE &c) const
 
EVENT_TYPE & front ()
 
const EVENT_TYPE & front () const
 
EVENT_TYPE & back ()
 
const EVENT_TYPE & back () const
 
unsigned int size () const
 
bool empty () const
 
void push_back (const EVENT_TYPE &c)
 
void pop_back ()
 
void erase (typename std::vector< EVENT_TYPE >::iterator pos)
 
void erase (typename std::vector< EVENT_TYPE >::iterator first, typename std::vector< EVENT_TYPE >::iterator last)
 
PolymorphVector< EVENT_TYPE > & operator= (const PolymorphVector< EVENT_TYPE > &other)
 
void clear ()
 
void resize (unsigned int N)
 
void resize (unsigned int N, const EVENT_TYPE &c)
 
 operator const typename std::vector< EVENT_TYPE > & () const
 
 operator typename std::vector< EVENT_TYPE > & ()
 
bool operator== (const MINT::PolymorphVector< EVENT_TYPE > &v2) const
 
bool operator!= (const MINT::PolymorphVector< EVENT_TYPE > &v2) const
 
bool operator< (const MINT::PolymorphVector< EVENT_TYPE > &v2) const
 
bool operator> (const MINT::PolymorphVector< EVENT_TYPE > &v2) const
 

Additional Inherited Members

- Protected Member Functions inherited from MINT::IEventList< EVENT_TYPE >
 IEventList ()
 
- Protected Member Functions inherited from MINT::IMinimalEventList< EVENT_TYPE >
 IMinimalEventList ()
 
- Protected Attributes inherited from MINT::PolymorphVector< EVENT_TYPE >
std::vector< EVENT_TYPE > _vec
 

Detailed Description

template<typename EVENT_TYPE>
class MINT::EventList< EVENT_TYPE >

Definition at line 19 of file EventList.h.

Constructor & Destructor Documentation

◆ EventList() [1/2]

template<typename EVENT_TYPE>
MINT::EventList< EVENT_TYPE >::EventList ( )
inline

Definition at line 24 of file EventList.h.

25  : IEventList<EVENT_TYPE>()
27  {
28  }

◆ EventList() [2/2]

template<typename EVENT_TYPE>
MINT::EventList< EVENT_TYPE >::EventList ( const EventList< EVENT_TYPE > &  other)
inline

Definition at line 29 of file EventList.h.

30  : IEventList<EVENT_TYPE>()
32  {
33  }

◆ ~EventList()

template<typename EVENT_TYPE>
virtual MINT::EventList< EVENT_TYPE >::~EventList ( )
inlinevirtual

Definition at line 34 of file EventList.h.

34 {}

Member Function Documentation

◆ Add() [1/2]

template<typename EVENT_TYPE>
virtual bool MINT::EventList< EVENT_TYPE >::Add ( const EVENT_TYPE &  evt)
inlinevirtual

Implements MINT::IMinimalEventList< EVENT_TYPE >.

Definition at line 63 of file EventList.h.

63  {
64  this->push_back(evt);
65  return true;
66  }
void push_back(const EVENT_TYPE &c)

◆ Add() [2/2]

template<typename EVENT_TYPE>
virtual bool MINT::EventList< EVENT_TYPE >::Add ( const EventList< EVENT_TYPE > &  addList)
inlinevirtual

Definition at line 67 of file EventList.h.

67  {
68  for(unsigned int i = 0; i < addList.size(); i++){
69  this->push_back(addList[i]);
70  }
71  return true;
72  }
void push_back(const EVENT_TYPE &c)

◆ getEvent()

template<typename EVENT_TYPE>
virtual EVENT_TYPE MINT::EventList< EVENT_TYPE >::getEvent ( unsigned int  i) const
inlinevirtual

Implements MINT::IMinimalEventList< EVENT_TYPE >.

Definition at line 55 of file EventList.h.

55  {
57  }
T & at(unsigned int i)

◆ operator=()

template<typename EVENT_TYPE>
EventList<EVENT_TYPE>& MINT::EventList< EVENT_TYPE >::operator= ( const EventList< EVENT_TYPE > &  other)
inline

Definition at line 37 of file EventList.h.

37  {
38  if(this == &other) return *this;
39  this->clear();
40  for(unsigned int i=0; i<other.size(); i++){
41  this->push_back(other[i]);
42  }
43  return *this;
44  }
void push_back(const EVENT_TYPE &c)

◆ operator[]() [1/2]

template<typename EVENT_TYPE>
virtual EVENT_TYPE& MINT::EventList< EVENT_TYPE >::operator[] ( unsigned int  i)
inlinevirtual

Implements MINT::IEventList< EVENT_TYPE >.

Definition at line 46 of file EventList.h.

46  {
48  //return std::vector<EVENT_TYPE>::operator[](i);
49  }
T & at(unsigned int i)

◆ operator[]() [2/2]

template<typename EVENT_TYPE>
virtual const EVENT_TYPE& MINT::EventList< EVENT_TYPE >::operator[] ( unsigned int  i) const
inlinevirtual

Implements MINT::IEventList< EVENT_TYPE >.

Definition at line 50 of file EventList.h.

50  {
52  //return std::vector<EVENT_TYPE>::operator[](i);
53  }
T & at(unsigned int i)

◆ size()

template<typename EVENT_TYPE>
virtual unsigned int MINT::EventList< EVENT_TYPE >::size ( ) const
inlinevirtual

Implements MINT::IMinimalEventList< EVENT_TYPE >.

Definition at line 59 of file EventList.h.

59  {
61  }
unsigned int size() const

The documentation for this class was generated from the following file: