GammaLib 2.0.0
Loading...
Searching...
No Matches
GEventList Class Referenceabstract

Abstract event atom container class. More...

#include <GEventList.hpp>

Inheritance diagram for GEventList:
GEvents GBase GCOMEventList GCTAEventList GLATEventList

Public Member Functions

 GEventList (void)
 Void constructor.
 
 GEventList (const GEventList &list)
 Copy constructor.
 
virtual ~GEventList (void)
 Destructor.
 
virtual GEventListoperator= (const GEventList &list)
 Assignment operator.
 
virtual GEventAtomoperator[] (const int &index)=0
 
virtual const GEventAtomoperator[] (const int &index) const =0
 
virtual void clear (void)=0
 Clear object.
 
virtual GEventListclone (void) const =0
 Clones object.
 
virtual std::string classname (void) const =0
 Return class name.
 
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 GRoiroi (void) const =0
 
virtual std::string print (const GChatter &chatter=NORMAL) const =0
 Print content of object.
 
- Public Member Functions inherited from GEvents
 GEvents (void)
 Void constructor.
 
 GEvents (const GEvents &events)
 Copy constructor.
 
virtual ~GEvents (void)
 Destructor.
 
virtual GEventsoperator= (const GEvents &events)
 Assignment operator.
 
void ebounds (const GEbounds &ebounds)
 Set energy boundaries.
 
void gti (const GGti &gti)
 Set Good Time Intervals.
 
const GEboundsebounds (void) const
 Return energy boundaries.
 
const GGtigti (void) const
 Return Good Time Intervals.
 
const GTimetstart (void) const
 Return start time.
 
const GTimetstop (void) const
 Return stop time.
 
const GEnergyemin (void) const
 Return minimum energy.
 
const GEnergyemax (void) const
 Return maximum energy.
 
- Public Member Functions inherited from GBase
virtual ~GBase (void)
 Destructor.
 

Protected Member Functions

void init_members (void)
 Initialise class members.
 
void copy_members (const GEventList &list)
 Copy class members.
 
void free_members (void)
 Delete class members.
 
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.
 
void copy_members (const GEvents &events)
 Copy class members.
 
void free_members (void)
 Delete class members.
 

Additional Inherited Members

- Protected Attributes inherited from GEvents
GEbounds m_ebounds
 Energy boundaries covered by events.
 
GGti m_gti
 Good time intervals covered by events.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GEventList() [1/2]

GEventList::GEventList ( void )

Void constructor.

Definition at line 51 of file GEventList.cpp.

References init_members().

◆ GEventList() [2/2]

GEventList::GEventList ( const GEventList & list)

Copy constructor.

Parameters
[in]listEvent list.

Definition at line 66 of file GEventList.cpp.

References copy_members(), and init_members().

◆ ~GEventList()

GEventList::~GEventList ( void )
virtual

Destructor.

Definition at line 82 of file GEventList.cpp.

References free_members().

Member Function Documentation

◆ classname()

virtual std::string GEventList::classname ( void ) const
pure virtual

Return class name.

Returns
String containing the class name.

Returns the class name for non-abstract classes in a human readable way.

Implements GEvents.

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ clear()

virtual void GEventList::clear ( void )
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 GCOMEventList, GCTAEventList, and GLATEventList.

◆ clone()

virtual GEventList * GEventList::clone ( void ) const
pure virtual

Clones object.

Returns
Pointer to deep copy of object.

Creates a deep copy of the object and returns a pointer to the object.

Implements GEvents.

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ copy_members()

void GEventList::copy_members ( const GEventList & list)
protected

Copy class members.

Parameters
[in]listEvent list.

Definition at line 155 of file GEventList.cpp.

Referenced by GEventList(), and operator=().

◆ free_members()

void GEventList::free_members ( void )
protected

Delete class members.

Definition at line 165 of file GEventList.cpp.

Referenced by GCOMEventList::clear(), GCTAEventList::clear(), GLATEventList::clear(), operator=(), and ~GEventList().

◆ init_members()

void GEventList::init_members ( void )
protected

Initialise class members.

Definition at line 143 of file GEventList.cpp.

Referenced by GCOMEventList::clear(), GCTAEventList::clear(), GLATEventList::clear(), GEventList(), GEventList(), and operator=().

◆ load()

virtual void GEventList::load ( const GFilename & filename)
pure virtual

Implements GEvents.

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ number()

virtual int GEventList::number ( void ) const
pure virtual

Implements GEvents.

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ operator=()

GEventList & GEventList::operator= ( const GEventList & list)
virtual

Assignment operator.

Parameters
[in]listEvent list.
Returns
Event list.

Definition at line 104 of file GEventList.cpp.

References copy_members(), free_members(), init_members(), and GEvents::operator=().

Referenced by GCOMEventList::operator=(), GCTAEventList::operator=(), and GLATEventList::operator=().

◆ operator[]() [1/2]

virtual const GEventAtom * GEventList::operator[] ( const int & index) const
pure virtual

Implements GEvents.

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ operator[]() [2/2]

virtual GEventAtom * GEventList::operator[] ( const int & index)
pure virtual

Implements GEvents.

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ print()

virtual std::string GEventList::print ( const GChatter & chatter = NORMAL) const
pure virtual

Print content of object.

Parameters
[in]chatterChattiness (defaults to NORMAL).
Returns
String containing the content of the object.

Formats the content in a standard way and puts this content in a C++ string that is returned.

Implements GEvents.

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ read()

virtual void GEventList::read ( const GFits & file)
pure virtual

Implements GEvents.

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ roi() [1/2]

virtual void GEventList::roi ( const GRoi & roi)
pure virtual

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ roi() [2/2]

virtual const GRoi & GEventList::roi ( void ) const
pure virtual

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ save()

virtual void GEventList::save ( const GFilename & filename,
const bool & clobber = false ) const
pure virtual

Implements GEvents.

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ set_energies()

virtual void GEventList::set_energies ( void )
protectedpure virtual

Implements GEvents.

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ set_times()

virtual void GEventList::set_times ( void )
protectedpure virtual

Implements GEvents.

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ size()

virtual int GEventList::size ( void ) const
pure virtual

Implements GEvents.

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.

◆ write()

virtual void GEventList::write ( GFits & file) const
pure virtual

Implements GEvents.

Implemented in GCOMEventList, GCTAEventList, and GLATEventList.


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