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();
int get_index(const std::string &name) const
Return parameter index by name.
GModelSpectralTablePar * append(const GModelSpectralTablePar &par)
Append table model parameter to container.
std::vector< GModelSpectralTablePar * > m_pars
List of parameters.
void init_members(void)
Initialise class members.
void extend(const GModelSpectralTablePars &pars)
Append table model parameter container.
Spectral table model parameter container class.
GModelSpectralTablePar * at(const int &index)
Return pointer to table model parameter.
GModelSpectralTablePar * set(const int &index, const GModelSpectralTablePar &par)
Set table model parameter in container.
Spectral table model parameter class definition.
int size(void) const
Return number of table model parameters in container.
GModelSpectralTablePar * operator[](const int &index)
Return pointer to table model parameter.
void copy_members(const GModelSpectralTablePars &model)
Copy class members.
virtual ~GModelSpectralTablePars(void)
Destructor.
std::string classname(void) const
Return class name.
void clear(void)
Clear table model parameters.
bool contains(const std::string &name) const
Signals if table model parameter exists.
void free_members(void)
Delete class members.
GModelSpectralTablePars & operator=(const GModelSpectralTablePars &pars)
Assignment operator.
bool is_empty(void) const
Signals if there are no table model parameters in container.
Definition of interface for container classes.
void reserve(const int &num)
Reserves space for table model parameters in container.
GModelSpectralTablePar * insert(const int &index, const GModelSpectralTablePar &par)
Insert table model parameter into container.
GModelSpectralTablePars * clone(void) const
Clone table model parameters.
GModelSpectralTablePars(void)
Void constructor.
Spectral table model parameter class.
Interface class for container classes.
std::string print(const GChatter &chatter=NORMAL) const
Print table model parameters.