27 #ifndef GMODELTEMPORAL_HPP
28 #define GMODELTEMPORAL_HPP
67 virtual void clear(
void) = 0;
69 virtual std::string
classname(
void)
const = 0;
70 virtual std::string
type(
void)
const = 0;
72 const bool& gradients =
false)
const = 0;
82 bool has_par(
const std::string& name)
const;
137 return (
int)
m_pars.size();
virtual ~GModelTemporal(void)
Destructor.
virtual GTimes mc(const double &rate, const GTime &tmin, const GTime &tmax, GRan &ran) const =0
std::vector< GModelPar * > m_pars
Parameter pointers.
Random number generator class definition.
Abstract temporal model base class.
bool has_par(const std::string &name) const
Checks if parameter name exists.
virtual std::string print(const GChatter &chatter=NORMAL) const =0
Print content of object.
Definition of interface for all GammaLib classes.
virtual void write(GXmlElement &xml) const =0
Random number generator class.
Time container class definition.
void autoscale(void)
Autoscale parameters.
Model parameter class interface definition.
GModelPar & at(const int &index)
Returns model parameter.
Interface class for all GammaLib classes.
int size(void) const
Return number of parameters.
virtual void read(const GXmlElement &xml)=0
virtual double eval(const GTime &srcTime, const bool &gradients=false) const =0
virtual std::string classname(void) const =0
Return class name.
GModelTemporal(void)
Void constructor.
virtual std::string type(void) const =0
virtual GModelPar & operator[](const int &index)
Returns model parameter.
virtual GModelTemporal & operator=(const GModelTemporal &model)
Assignment operator.
void copy_members(const GModelTemporal &model)
Copy class members.
virtual GModelTemporal * clone(void) const =0
Clones object.
void init_members(void)
Initialise class members.
virtual void clear(void)=0
Clear object.
Time class interface definition.
void free_members(void)
Delete class members.