GammaLib
2.1.0.dev
|
Abstract event atom container class. More...
#include <GEventList.hpp>
Public Member Functions | |
GEventList (void) | |
Void constructor. More... | |
GEventList (const GEventList &list) | |
Copy constructor. More... | |
virtual | ~GEventList (void) |
Destructor. More... | |
virtual GEventList & | operator= (const GEventList &list) |
Assignment operator. More... | |
virtual GEventAtom * | operator[] (const int &index)=0 |
virtual const GEventAtom * | operator[] (const int &index) const =0 |
virtual void | clear (void)=0 |
Clear object. More... | |
virtual GEventList * | clone (void) const =0 |
Clones object. More... | |
virtual std::string | classname (void) const =0 |
Return class name. More... | |
virtual int | size (void) const =0 |
virtual void | load (const GFilename &filename)=0 |
virtual void | save (const GFilename &filename, const bool &clobber=false) const =0 |
virtual void | read (const GFits &file)=0 |
virtual void | write (GFits &file) const =0 |
virtual int | number (void) const =0 |
virtual void | roi (const GRoi &roi)=0 |
virtual const GRoi & | roi (void) const =0 |
virtual std::string | print (const GChatter &chatter=NORMAL) const =0 |
Print content of object. More... | |
Public Member Functions inherited from GEvents | |
GEvents (void) | |
Void constructor. More... | |
GEvents (const GEvents &events) | |
Copy constructor. More... | |
virtual | ~GEvents (void) |
Destructor. More... | |
virtual GEvents & | operator= (const GEvents &events) |
Assignment operator. More... | |
void | ebounds (const GEbounds &ebounds) |
Set energy boundaries. More... | |
void | gti (const GGti >i) |
Set Good Time Intervals. More... | |
const GEbounds & | ebounds (void) const |
Return energy boundaries. More... | |
const GGti & | gti (void) const |
Return Good Time Intervals. More... | |
const GTime & | tstart (void) const |
Return start time. More... | |
const GTime & | tstop (void) const |
Return stop time. More... | |
const GEnergy & | emin (void) const |
Return minimum energy. More... | |
const GEnergy & | emax (void) const |
Return maximum energy. More... | |
Public Member Functions inherited from GBase | |
virtual | ~GBase (void) |
Destructor. More... | |
Protected Member Functions | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GEventList &list) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
virtual void | set_energies (void)=0 |
virtual void | set_times (void)=0 |
Protected Member Functions inherited from GEvents | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GEvents &events) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Additional Inherited Members | |
Protected Attributes inherited from GEvents | |
GEbounds | m_ebounds |
Energy boundaries covered by events. More... | |
GGti | m_gti |
Good time intervals covered by events. More... | |
Abstract event atom container class.
This class is an abstract container class for event atoms.
In addition to the base class methods, it defines also an interface to the region of interest (ROI) that is covered by the data space. The ROI can be accessed by the roi() methods.
Definition at line 49 of file GEventList.hpp.
GEventList::GEventList | ( | void | ) |
GEventList::GEventList | ( | const GEventList & | list | ) |
Copy constructor.
[in] | list | Event list. |
Definition at line 66 of file GEventList.cpp.
References copy_members(), and init_members().
|
virtual |
|
pure virtual |
Return class name.
Returns the class name for non-abstract classes in a human readable way.
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
pure virtual |
Clear object.
Sets the object to a clean initial state. After calling the method the object will be in the same state as it were if an empty instance of the object would have been created.
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
pure virtual |
Clones object.
Creates a deep copy of the object and returns a pointer to the object.
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
protected |
Copy class members.
[in] | list | Event list. |
Definition at line 155 of file GEventList.cpp.
Referenced by GEventList(), and operator=().
|
protected |
Delete class members.
Definition at line 165 of file GEventList.cpp.
Referenced by GCOMEventList::clear(), GLATEventList::clear(), GCTAEventList::clear(), operator=(), and ~GEventList().
|
protected |
Initialise class members.
Definition at line 143 of file GEventList.cpp.
Referenced by GCOMEventList::clear(), GLATEventList::clear(), GCTAEventList::clear(), GEventList(), and operator=().
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
virtual |
Assignment operator.
[in] | list | Event list. |
Definition at line 104 of file GEventList.cpp.
References copy_members(), free_members(), init_members(), and GEvents::operator=().
Referenced by GCOMEventList::operator=(), GLATEventList::operator=(), and GCTAEventList::operator=().
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
Print content of object.
[in] | chatter | Chattiness (defaults to NORMAL). |
Formats the content in a standard way and puts this content in a C++ string that is returned.
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
pure virtual |
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
pure virtual |
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
protectedpure virtual |
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
protectedpure virtual |
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.
|
pure virtual |
Implements GEvents.
Implemented in GCTAEventList, GLATEventList, and GCOMEventList.