35 #define G_ACCESS "GModelTemporal::operator[](std::string&)"
36 #define G_AT "GModelPar& GModelTemporal::at(int&)"
110 if (
this != &model) {
140 for (; index <
size(); ++index) {
141 if (
m_pars[index]->name() == name) {
147 if (index >=
size()) {
148 std::string msg =
"Model parameter \""+name+
"\" not found in model. "
149 "Please specify a valid model parameter name.";
170 for (; index <
size(); ++index) {
171 if (
m_pars[index]->name() == name) {
177 if (index >=
size()) {
178 std::string msg =
"Model parameter \""+name+
"\" not found in model. "
179 "Please specify a valid model parameter name.";
208 if (index < 0 || index >=
size()) {
231 if (index < 0 || index >=
size()) {
255 for (
int i = 0; i <
size(); ++i) {
256 if (
m_pars[i]->name() == name) {
275 for (
int i = 0; i <
m_pars.size(); ++i) {
virtual ~GModelTemporal(void)
Destructor.
std::vector< GModelPar * > m_pars
Parameter pointers.
Abstract temporal model base class.
bool has_par(const std::string &name) const
Checks if parameter name exists.
void autoscale(void)
Autoscale parameters.
GModelPar & at(const int &index)
Returns model parameter.
Abstract temporal model base class interface definition.
int size(void) const
Return number of parameters.
GModelTemporal(void)
Void constructor.
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.
Exception handler interface definition.
void init_members(void)
Initialise class members.
void free_members(void)
Delete class members.