GammaLib
2.1.0.dev
|
Abstract instrument direction base class. More...
#include <GInstDir.hpp>
Public Member Functions | |
GInstDir (void) | |
Void constructor. More... | |
GInstDir (const GInstDir &dir) | |
Copy constructor. More... | |
virtual | ~GInstDir (void) |
Destructor. More... | |
virtual GInstDir & | operator= (const GInstDir &dir) |
Assignment operator. More... | |
virtual void | clear (void)=0 |
Clear object. More... | |
virtual GInstDir * | clone (void) const =0 |
Clones object. More... | |
virtual std::string | classname (void) const =0 |
Return class name. More... | |
virtual u_int64_t | hash (void) const =0 |
virtual std::string | print (const GChatter &chatter=NORMAL) const =0 |
Print content of object. 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 GInstDir &dir) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Abstract instrument direction base class.
The instrument direction of an event is the equivalent of the sky direction (implemented by GSkyDir) but in the instrument data space. The instrument direction may be any kind of position or direction information encoded in the data space, such as incident event reconstructions for imaging devices or detector numbers etc. for non-imaging devices.
Definition at line 51 of file GInstDir.hpp.
GInstDir::GInstDir | ( | void | ) |
GInstDir::GInstDir | ( | const GInstDir & | dir | ) |
Copy constructor.
[in] | dir | Instrument direction. |
Definition at line 67 of file GInstDir.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 GBase.
Implemented in GCTAInstDir, GSPIInstDir, GLATInstDir, GMWLInstDir, and GCOMInstDir.
|
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 GBase.
Implemented in GCTAInstDir, GSPIInstDir, GLATInstDir, GMWLInstDir, and GCOMInstDir.
|
pure virtual |
Clones object.
Creates a deep copy of the object and returns a pointer to the object.
Implements GBase.
Implemented in GCTAInstDir, GSPIInstDir, GLATInstDir, GMWLInstDir, and GCOMInstDir.
|
protected |
Copy class members.
[in] | dir | Instrument direction. |
Definition at line 153 of file GInstDir.cpp.
Referenced by GInstDir(), and operator=().
|
protected |
Delete class members.
Definition at line 163 of file GInstDir.cpp.
Referenced by GCOMInstDir::clear(), GMWLInstDir::clear(), GLATInstDir::clear(), GSPIInstDir::clear(), GCTAInstDir::clear(), operator=(), and ~GInstDir().
|
pure virtual |
Implemented in GCTAInstDir, GSPIInstDir, GLATInstDir, GMWLInstDir, and GCOMInstDir.
Referenced by GResponseCache::contains(), and GResponseCache::set().
|
protected |
Initialise class members.
Definition at line 141 of file GInstDir.cpp.
Referenced by GCOMInstDir::clear(), GMWLInstDir::clear(), GLATInstDir::clear(), GSPIInstDir::clear(), GCTAInstDir::clear(), GInstDir(), and operator=().
Assignment operator.
[in] | dir | Instrument direction. |
Definition at line 105 of file GInstDir.cpp.
References copy_members(), free_members(), and init_members().
Referenced by GCOMInstDir::operator=(), GMWLInstDir::operator=(), GLATInstDir::operator=(), GSPIInstDir::operator=(), and GCTAInstDir::operator=().
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 GBase.
Implemented in GCTAInstDir, GSPIInstDir, GLATInstDir, GMWLInstDir, and GCOMInstDir.