15 #ifndef BORNAGAIN_CORE_PARAMETRIZATION_IPARAMETERIZED_H
16 #define BORNAGAIN_CORE_PARAMETRIZATION_IPARAMETERIZED_H
46 RealParameter& registerParameter(
const std::string& name,
double* parpointer);
48 void registerVector(
const std::string& base_name,
kvector_t* p_vec,
49 const std::string& units =
"nm");
51 void setParameterValue(
const std::string& name,
double value);
53 void setVectorValue(
const std::string& base_name,
kvector_t value);
60 void removeParameter(
const std::string& name);
62 void removeVector(
const std::string& base_name);
64 static std::string XComponentName(
const std::string& base_name);
65 static std::string YComponentName(
const std::string& base_name);
66 static std::string ZComponentName(
const std::string& base_name);
68 void setName(
const std::string& name) { m_name = name; }
69 const std::string& getName()
const {
return m_name; }
73 std::unique_ptr<ParameterPool> m_pool;
Defines basic vectors in R^3 and C^3.
Manages a local parameter pool, and a tree of child pools.
std::string parametersToString() const
Returns multiline string representing available parameters.
RealParameter * parameter(const std::string &name) const
Returns parameter with given 'name'.
virtual void onChange()
Action to be taken in inherited class when a parameter has changed.
ParameterPool * parameterPool() const
Returns pointer to the parameter pool.
virtual ParameterPool * createParameterTree() const
Creates new parameter pool, with all local parameters and those of its children.
Container with parameters for IParameterized object.
Limits for a real fit parameter.
Wraps a parameter of type double.