GammaLib
2.1.0.dev
|
Single parameter functions abstract base class. More...
#include <GFunctions.hpp>
Public Member Functions | |
GFunctions (void) | |
Void constructor. More... | |
GFunctions (const GFunctions &functions) | |
Copy constructor. More... | |
virtual | ~GFunctions (void) |
Destructor. More... | |
GFunctions & | operator= (const GFunctions &functions) |
Assignment operator. More... | |
virtual int | size (void) const =0 |
virtual GVector | eval (const double &x)=0 |
Protected Member Functions | |
void | init_members (void) |
Initialise class members. More... | |
void | copy_members (const GFunctions &functions) |
Copy class members. More... | |
void | free_members (void) |
Delete class members. More... | |
Single parameter functions abstract base class.
This class implements the abstract interface for a set of one parameter functions.
The set of functions is for example used for integration or numerical computation of derivatives. This class has no members. The only pure virtual method that needs to be implemented by the derived class is the eval() method that evaluates the functions at a given value x and returns the evaluation result as an GNdarray object.
Definition at line 50 of file GFunctions.hpp.
GFunctions::GFunctions | ( | void | ) |
GFunctions::GFunctions | ( | const GFunctions & | functions | ) |
Copy constructor.
[in] | functions | Functions. |
Definition at line 63 of file GFunctions.cpp.
References copy_members(), and init_members().
|
virtual |
|
protected |
Copy class members.
[in] | functions | Functions. |
Definition at line 149 of file GFunctions.cpp.
Referenced by GFunctions(), and operator=().
|
pure virtual |
Implemented in com_elliptical_kerns_omega, GResponse::edisp_kerns, com_elliptical_kerns_rho, com_radial_kerns_omega, cta_psf_radial_kerns_phi, com_radial_kerns_rho, and cta_psf_radial_kerns_delta.
Referenced by GIntegrals::trapzd().
|
protected |
Delete class members.
Definition at line 159 of file GFunctions.cpp.
Referenced by operator=(), and ~GFunctions().
|
protected |
Initialise class members.
Definition at line 137 of file GFunctions.cpp.
Referenced by GFunctions(), and operator=().
GFunctions & GFunctions::operator= | ( | const GFunctions & | functions | ) |
Assignment operator.
[in] | functions | Functions. |
Definition at line 101 of file GFunctions.cpp.
References copy_members(), free_members(), and init_members().
|
pure virtual |
Implemented in com_elliptical_kerns_omega, GResponse::edisp_kerns, com_elliptical_kerns_rho, com_radial_kerns_omega, cta_psf_radial_kerns_phi, com_radial_kerns_rho, and cta_psf_radial_kerns_delta.
Referenced by GIntegrals::romberg().