27#ifndef GMODELSPECTRALTABLEPARS_HPP
28#define GMODELSPECTRALTABLEPARS_HPP
76 void remove(
const int& index);
77 void remove(
const std::string& name);
80 bool contains(
const std::string& name)
const;
88 int get_index(
const std::string& name)
const;
91 std::vector<GModelSpectralTablePar*>
m_pars;
103 return (
"GModelSpectralTablePars");
161 return (
int)
m_pars.size();
Definition of interface for container classes.
Spectral table model parameter class definition.
Interface class for container classes.
Spectral table model parameter class.
Spectral table model parameter container class.
void extend(const GModelSpectralTablePars &pars)
Append table model parameter container.
void copy_members(const GModelSpectralTablePars &model)
Copy class members.
GModelSpectralTablePar * set(const int &index, const GModelSpectralTablePar &par)
Set table model parameter in container.
std::vector< GModelSpectralTablePar * > m_pars
List of parameters.
GModelSpectralTablePar * append(const GModelSpectralTablePar &par)
Append table model parameter to container.
void clear(void)
Clear table model parameters.
bool contains(const std::string &name) const
Signals if table model parameter exists.
GModelSpectralTablePars * clone(void) const
Clone table model parameters.
int size(void) const
Return number of table model parameters in container.
bool is_empty(void) const
Signals if there are no table model parameters in container.
GModelSpectralTablePars & operator=(const GModelSpectralTablePars &pars)
Assignment operator.
void reserve(const int &num)
Reserves space for table model parameters in container.
GModelSpectralTablePar * at(const int &index)
Return pointer to table model parameter.
GModelSpectralTablePars(void)
Void constructor.
std::string print(const GChatter &chatter=NORMAL) const
Print table model parameters.
void remove(const int &index)
Remove table model parameter from container.
virtual ~GModelSpectralTablePars(void)
Destructor.
GModelSpectralTablePar * insert(const int &index, const GModelSpectralTablePar &par)
Insert table model parameter into container.
GModelSpectralTablePar * operator[](const int &index)
Return pointer to table model parameter.
int get_index(const std::string &name) const
Return parameter index by name.
std::string classname(void) const
Return class name.
void free_members(void)
Delete class members.
void init_members(void)
Initialise class members.