GammaLib  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GFunctions Class Referenceabstract

Single parameter functions abstract base class. More...

#include <GFunctions.hpp>

Inheritance diagram for GFunctions:
com_elliptical_kerns_omega com_elliptical_kerns_rho com_radial_kerns_omega com_radial_kerns_rho cta_psf_radial_kerns_delta cta_psf_radial_kerns_phi GResponse::edisp_kerns

Public Member Functions

 GFunctions (void)
 Void constructor. More...
 
 GFunctions (const GFunctions &functions)
 Copy constructor. More...
 
virtual ~GFunctions (void)
 Destructor. More...
 
GFunctionsoperator= (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...
 

Detailed Description

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.

Constructor & Destructor Documentation

GFunctions::GFunctions ( void  )

Void constructor.

Definition at line 48 of file GFunctions.cpp.

References init_members().

GFunctions::GFunctions ( const GFunctions functions)

Copy constructor.

Parameters
[in]functionsFunctions.

Definition at line 63 of file GFunctions.cpp.

References copy_members(), and init_members().

GFunctions::~GFunctions ( void  )
virtual

Destructor.

Definition at line 79 of file GFunctions.cpp.

References free_members().

Member Function Documentation

void GFunctions::copy_members ( const GFunctions functions)
protected

Copy class members.

Parameters
[in]functionsFunctions.

Definition at line 149 of file GFunctions.cpp.

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

void GFunctions::free_members ( void  )
protected

Delete class members.

Definition at line 159 of file GFunctions.cpp.

Referenced by operator=(), and ~GFunctions().

void GFunctions::init_members ( void  )
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.

Parameters
[in]functionsFunctions.
Returns
Functions.

Definition at line 101 of file GFunctions.cpp.

References copy_members(), free_members(), and init_members().


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