27 #ifndef GOPTIMIZERPARS_HPP
28 #define GOPTIMIZERPARS_HPP
75 int nfree(
void)
const;
84 void remove(
const int& index);
85 void remove(
const std::string& name);
88 bool contains(
const std::string& name)
const;
96 int get_index(
const std::string& name)
const;
112 return (
"GOptimizerPars");
156 return (
int)
m_pars.size();
std::string number(const std::string &noun, const int &number)
Convert singular noun into number noun.
GOptimizerPar * set(const int &index, const GOptimizerPar &par)
Set parameter in container.
std::vector< GOptimizerPar * > m_pars
List of parameters.
GOptimizerPar * insert(const int &index, const GOptimizerPar &par)
Insert parameter into container.
GOptimizerPars(void)
Void constructor.
GOptimizerPar * at(const int &index)
Return pointer to parameter.
Optimizer parameter container class.
void reserve(const int &num)
Reserves space for parameters in container.
bool is_empty(void) const
Signals if there are no parameters in container.
void clear(void)
Clear parameter container.
GOptimizerPar * operator[](const int &index)
Return pointer to parameter.
void init_members(void)
Initialise class members.
GOptimizerPars & operator=(const GOptimizerPars &pars)
Assignment operator.
GOptimizerPars * clone(void) const
Clone parameter container.
std::vector< bool > m_alloc
Flags allocation.
void attach(GOptimizerPar *par)
Attach parameter to container.
virtual ~GOptimizerPars(void)
Destructor.
bool contains(const std::string &name) const
Signals if parameter name exists.
void extend(const GOptimizerPars &pars)
Append parameter container.
GOptimizerPar * append(const GOptimizerPar &par)
Append parameter to container.
int get_index(const std::string &name) const
Return parameter index by name.
std::string classname(void) const
Return class name.
int nfree(void) const
Return number of free parameters.
Optimizer parameter class interface definition.
Definition of interface for container classes.
int size(void) const
Return number of parameters in container.
void free_members(void)
Delete class members.
void copy_members(const GOptimizerPars &pars)
Copy class members.
std::string print(const GChatter &chatter=NORMAL) const
Print parameters.
Interface class for container classes.
Optimizer parameter class.