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

Single parameter functions abstract base class. More...

#include <GFunctions.hpp>

Inheritance diagram for GFunctions:
GResponse::edisp_kerns 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

Public Member Functions

 GFunctions (void)
 Void constructor.
 
 GFunctions (const GFunctions &functions)
 Copy constructor.
 
virtual ~GFunctions (void)
 Destructor.
 
GFunctionsoperator= (const GFunctions &functions)
 Assignment operator.
 
virtual int size (void) const =0
 
virtual GVector eval (const double &x)=0
 

Protected Member Functions

void init_members (void)
 Initialise class members.
 
void copy_members (const GFunctions &functions)
 Copy class members.
 
void free_members (void)
 Delete class members.
 

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() [1/2]

GFunctions::GFunctions ( void )

Void constructor.

Definition at line 48 of file GFunctions.cpp.

References init_members().

◆ GFunctions() [2/2]

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::~GFunctions ( void )
virtual

Destructor.

Definition at line 79 of file GFunctions.cpp.

References free_members().

Member Function Documentation

◆ copy_members()

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=().

◆ eval()

◆ free_members()

void GFunctions::free_members ( void )
protected

Delete class members.

Definition at line 159 of file GFunctions.cpp.

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

◆ init_members()

void GFunctions::init_members ( void )
protected

Initialise class members.

Definition at line 137 of file GFunctions.cpp.

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

◆ 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().

◆ size()


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