5 #ifndef BPP_NUMERIC_PARAMETERALIASABLE_H 6 #define BPP_NUMERIC_PARAMETERALIASABLE_H 73 virtual void aliasParameters(
const std::string& p1,
const std::string& p2) = 0;
85 virtual void aliasParameters(std::map<std::string, std::string>& unparsedParams,
bool verbose) = 0;
112 virtual std::vector<std::string>
getAlias(
const std::string& name)
const = 0;
119 virtual std::map<std::string, std::string>
getAliases()
const = 0;
145 std::vector<std::string>
getAlias(
const std::string& name)
const {
return std::vector<std::string>(); }
146 std::map<std::string, std::string>
getAliases()
const {
return std::map<std::string, std::string>(); }
150 #endif // BPP_NUMERIC_PARAMETERALIASABLE_H virtual size_t getNumberOfIndependentParameters() const =0
Get the number of independent parameters.
Extend the Parametrizable interface with support for parameter aliases.
virtual ~ParameterAliasableAdapter()
virtual ~ParameterAliasable()
virtual std::map< std::string, std::string > getAliases() const =0
virtual std::vector< std::string > getAlias(const std::string &name) const =0
virtual const ParameterList & getParameters() const =0
Get all parameters available.
std::vector< std::string > getAlias(const std::string &name) const
std::map< std::string, std::string > getAliases() const
virtual void aliasParameters(const std::string &p1, const std::string &p2)=0
Set two parameters as 'aliased'.
A low-level implementation of the Parametrizable interface with void functions.
This is the interface for all objects that imply parameters.
The parameter list object.
ParameterAliasableAdapter()
const ParameterList & getIndependentParameters() const
A low-level implementation of the ParameterAliasable interface with void functions.
virtual const ParameterList & getIndependentParameters() const =0
Get the minimal list of parameters to set the model.
unsigned int getNumberOfIndependentParameters() const
virtual void unaliasParameters(const std::string &p1, const std::string &p2)=0
Detach two parameters previously set as 'aliased'.
void aliasParameters(const std::string &p1, const std::string &p2)
void unaliasParameters(const std::string &p1, const std::string &p2)