41 #ifndef _ABSTRACTPARAMETRIZABLE_H_ 42 #define _ABSTRACTPARAMETRIZABLE_H_ 114 std::auto_ptr< std::vector<size_t> >updatedParameters(
new std::vector<size_t>());
217 #endif //_ABSTRACTPARAMETRIZABLE_H_ bool hasParameter(const std::string &name) const
Tell if there is a parameter with specified name.
Exception thrown when a parameter is not found, for instance in a ParameterList.
ParameterList parameters_
std::string getParameterNameWithoutNamespace(const std::string &name) const
Resolves a parameter name according to the current namespace.
virtual void fireParameterChanged(const ParameterList ¶meters)=0
Notify the class when one or several parameters have changed.
virtual ParameterList subList(const std::vector< std::string > &names) const
Get given parameters as a sublist.
void setParameterValue(const std::string &name, double value)
Set the value of parameter with name name to be equal to value.
virtual void reset()
Reset the list: delete all parameters.
void deleteParameters_(const std::vector< std::string > &names)
Parameter & getParameter_(size_t index)
This class allows to perform a correspondence analysis.
virtual bool matchParametersValues(const ParameterList ¶ms, std::vector< size_t > *updatedParameters=0)
Update the parameters from params.
A partial implementation of the Parametrizable interface.
virtual void deleteParameters(const std::vector< std::string > &names, bool mustExist=true)
Delete several parameters from the list.
This class is designed to facilitate the manipulation of parameters.
virtual void setAllParametersValues(const ParameterList ¶ms)
Set the parameters to be equals to params.
void deleteParameter_(std::string &name)
virtual void deleteParameter(const std::string &name)
Delete a parameter from the list.
virtual void setParameterValue(const std::string &name, double value)
Set the value of parameter with name name to be equal to value.
size_t getNumberOfParameters() const
Get the number of parameters.
This is the interface for all objects that imply parameters.
Parameter & getParameterWithNamespace_(const std::string &name)
The parameter list object.
virtual void addParameters(const ParameterList ¶ms)
Add new parameters at the end of the list.
void setAllParametersValues(const ParameterList ¶meters)
Set the parameters values to be equals to those of parameters.
AbstractParametrizable(const std::string &prefix)
ParameterList & getParameters_()
const Parameter & getParameterWithNamespace_(const std::string &name) const
void deleteParameter_(size_t index)
virtual bool hasParameter(const std::string &name) const
virtual ~AbstractParametrizable()
bool matchParametersValues(const ParameterList ¶meters)
Update the parameters from parameters.
const Parameter & getParameter(const std::string &name) const
Get the parameter with specified name.
void addParameters_(const ParameterList ¶meters)
void addParameter_(Parameter *parameter)
void setParametersValues(const ParameterList ¶meters)
Update the parameters from parameters.
virtual void addParameter(const Parameter ¶m)
Add a new parameter at the end of the list.
const ParameterList & getParameters() const
Get all parameters available.
const Parameter & getParameter_(size_t index) const
virtual const Parameter & getParameter(const std::string &name) const
Get the parameter with name name.
virtual double getValue() const
Get the value of this parameter.
Exception thrown when a value do not match a given constraint.
Parameter & getParameter_(const std::string &name)
Index out of bounds exception class.
void setNamespace(const std::string &prefix)
Set the namespace for the parameter names.
std::string getNamespace() const
virtual void setParametersValues(const ParameterList ¶ms)
Update the parameters from the ones in params that have matching names.
double getParameterValue(const std::string &name) const
Get the value for parameter of name 'name'.