40 #ifndef _PARAMETERLIST_H_ 41 #define _PARAMETERLIST_H_ 44 #include "../Clonable.h" 45 #include "../Io/OutputStream.h" 269 virtual bool hasParameter(
const std::string& name)
const;
386 virtual void reset();
390 #endif // _PARAMETERLIST_H_ virtual const Parameter & operator[](size_t i) const
Exception thrown when a parameter is not found, for instance in a ParameterList.
virtual ParameterList subList(const std::vector< std::string > &names) const
Get given parameters as a sublist.
virtual void includeParameters(const ParameterList ¶ms)
Add parameters to the list. If the parameter already exists, only the value is updated, otherwise the new parameter is added at the end of the list.
virtual bool testParametersValues(const ParameterList ¶ms) const
Tests the parameters from params.
virtual void reset()
Reset the list: delete all parameters.
virtual std::vector< std::string > getMatchingParameterNames(const std::string &pattern) const
Get all parameter names matching with the given name. Up to now, only "*" jokers are available...
virtual double getParameterValue(const std::string &name) const
Get the value of the parameter with name name.
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.
virtual void setAllParameters(const ParameterList ¶ms)
Set the parameters to be equals to params.
virtual void deleteParameters(const std::vector< std::string > &names, bool mustExist=true)
Delete several parameters from the list.
ParameterList & operator=(const ParameterList &pl)
ParameterList()
Build a new ParameterList object.
This class is designed to facilitate the manipulation of parameters.
virtual void setAllParametersValues(const ParameterList ¶ms)
Set the parameters to be equals to params.
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.
virtual ParameterList getCommonParametersWith(const ParameterList ¶ms) const
Get the sublist containing all common parameter between this list and pl.
virtual Parameter & operator[](size_t i)
The parameter list object.
virtual void addParameters(const ParameterList ¶ms)
Add new parameters at the end of the list.
virtual std::vector< std::string > getParameterNames() const
Get all parameter names in the list.
ParameterList * clone() const
Create a copy of this object and send a pointer to it.
virtual bool hasParameter(const std::string &name) const
virtual size_t whichParameterHasName(const std::string &name) const
Get the position of a given parameter according to its name.
virtual void setParameter(size_t index, const Parameter ¶m)
Change given parameter.
virtual void setParameters(const ParameterList ¶ms)
Update the parameters from params.
virtual void addParameter(const Parameter ¶m)
Add a new parameter at the end of the list.
STL wrapper for output stream.
The Clonable interface (allow an object to be cloned).
virtual void matchParameters(const ParameterList ¶ms)
Update the parameters from params.
virtual const Parameter & getParameter(const std::string &name) const
Get the parameter with name name.
virtual void printParameters(OutputStream &out) const
Print all parameters.
std::vector< Parameter * > parameters_
Exception thrown when a value do not match a given constraint.
Index out of bounds exception class.
The parameter exception base class.
virtual void setParametersValues(const ParameterList ¶ms)
Update the parameters from the ones in params that have matching names.