27#ifndef GMODELSPECTRALTABLEPAR_HPP
28#define GMODELSPECTRALTABLEPAR_HPP
50 const std::vector<double>&
values);
66 const int&
method(
void)
const;
91 return (
"GModelSpectralTablePar");
Definition of interface for all GammaLib classes.
Model parameter class interface definition.
Node array class interface definition.
Interface class for all GammaLib classes.
Spectral table model parameter class.
void clear(void)
Clear table model parameter.
void free_members(void)
Delete class members.
bool is_empty(void) const
Signals if there are no table model parameter values.
int size(void) const
Return number of table model parameter values.
std::string classname(void) const
Return class name.
GNodeArray m_values
Parameter values.
int m_method
Interpolation method (0: linear, 1: logarithmic)
GModelSpectralTablePar * clone(void) const
Clone table model parameter.
const GNodeArray & values(void) const
Return reference to table model parameter values as node array.
virtual ~GModelSpectralTablePar(void)
Destructor.
GModelSpectralTablePar(void)
Void constructor.
GModelSpectralTablePar & operator=(const GModelSpectralTablePar &par)
Assignment operator.
GModelPar & par(void)
Return reference to table model parameter.
GModelPar m_par
Model parameter.
void init_members(void)
Initialise class members.
std::string print(const GChatter &chatter=NORMAL) const
Print table model parameter.
void copy_members(const GModelSpectralTablePar &par)
Copy class members.
const int & method(void) const
Return reference to table model parameter interpolation method.
bool is_empty(void) const
Signals if there are no nodes in node array.
int size(void) const
Return number of nodes in node array.