bpp-core
2.2.0
|
Plain collection of parametrizable objects. More...
#include <Bpp/Numeric/ParametrizableCollection.h>
Public Member Functions | |
ParametrizableCollection () | |
Create an empty object set. More... | |
ParametrizableCollection (const ParametrizableCollection< N > &set) | |
ParametrizableCollection< N > & | operator= (const ParametrizableCollection< N > &set) |
void | clear () |
Resets all the information contained in this object. More... | |
~ParametrizableCollection () | |
ParametrizableCollection< N > * | clone () const |
Create a copy of this object and send a pointer to it. More... | |
void | fireParameterChanged (const ParameterList ¶meters) |
std::vector< size_t > | hasChanged () const |
void | clearChanged () |
size_t | getNumberOfObjects () const |
const bool | hasObject (size_t objectIndex) const |
Says if there is a object with a given index. More... | |
const std::vector< size_t > | keys () const |
Returns the keys of the set. More... | |
const N * | operator[] (size_t objectIndex) const |
Get one object from the set knowing its index. More... | |
N * | operator[] (size_t objectIndex) |
void | addObject (N *object, size_t objectIndex) |
Add a new object to the set with a given number. More... | |
N * | removeObject (size_t objectIndex) |
Remove a object from the set, and all corresponding parameters. More... | |
N * | replaceObject (N *object, size_t objectIndex) |
Replace a object in the set, and returns the replaced one. More... | |
void | setNamespace (const std::string &prefix) |
Set the namespace for the parameter names. More... | |
const ParameterList & | getIndependentParameters () const |
Get the minimal list of parameters to set the model. More... | |
size_t | getNumberOfIndependentParameters () const |
Get the number of independent parameters. More... | |
void | aliasParameters (const std::string &p1, const std::string &p2) throw (ParameterNotFoundException, Exception) |
Set two parameters as 'aliased'. More... | |
void | aliasParameters (std::map< std::string, std::string > &unparsedParams, bool verbose) |
alias the parameters following the links described in a map, and update the object accordingly. Cycles in aliasing are detected and forbidden. More... | |
void | unaliasParameters (const std::string &p1, const std::string &p2) throw (ParameterNotFoundException, Exception) |
Detach two parameters previously set as 'aliased'. More... | |
ParameterList | getAliasedParameters (const ParameterList &pl) const |
Return the list of the names of the parameters that are aliased (directly or not) to one of the parameters of the list. More... | |
std::vector< std::string > | getAlias (const std::string &name) const |
std::string | getFrom (const std::string &name) const |
bool | hasParameter (const std::string &name) const |
Tell if there is a parameter with specified name. More... | |
const ParameterList & | getParameters () const |
Get all parameters available. More... | |
const Parameter & | getParameter (const std::string &name) const throw (ParameterNotFoundException) |
Get the parameter with specified name. More... | |
double | getParameterValue (const std::string &name) const throw (ParameterNotFoundException) |
Get the value for parameter of name 'name'. More... | |
void | setAllParametersValues (const ParameterList ¶meters) throw (ParameterNotFoundException, ConstraintException) |
Set the parameters values to be equals to those of parameters. More... | |
void | setParameterValue (const std::string &name, double value) throw (ParameterNotFoundException, ConstraintException) |
Set the value of parameter with name name to be equal to value. More... | |
void | setParametersValues (const ParameterList ¶meters) throw (ParameterNotFoundException, ConstraintException) |
Update the parameters from parameters. More... | |
bool | matchParametersValues (const ParameterList ¶meters) throw (ConstraintException) |
Update the parameters from parameters. More... | |
size_t | getNumberOfParameters () const |
Get the number of parameters. More... | |
std::string | getNamespace () const |
std::string | getParameterNameWithoutNamespace (const std::string &name) const |
Resolves a parameter name according to the current namespace. More... | |
Protected Member Functions | |
void | addParameter_ (Parameter *parameter) |
void | addParameters_ (const ParameterList ¶meters) |
void | deleteParameter_ (size_t index) throw (IndexOutOfBoundsException) |
void | deleteParameter_ (std::string &name) throw (IndexOutOfBoundsException) |
void | deleteParameters_ (const std::vector< std::string > &names) |
void | resetParameters_ () |
Parameter & | getParameter_ (const std::string &name) throw (ParameterNotFoundException) |
Parameter & | getParameter_ (size_t index) throw (IndexOutOfBoundsException) |
const Parameter & | getParameter_ (size_t index) const throw (IndexOutOfBoundsException) |
Parameter & | getParameterWithNamespace_ (const std::string &name) throw (ParameterNotFoundException) |
const Parameter & | getParameterWithNamespace_ (const std::string &name) const throw (ParameterNotFoundException) |
ParameterList & | getParameters_ () |
Protected Attributes | |
std::map< size_t, N *> | objectsSet_ |
Contains all objects used. More... | |
std::vector< size_t > | vChanged_ |
A vector of the numbers of objects that have changed during the last fireParameterChanged. More... | |
Plain collection of parametrizable objects.
The collection is a map from unsigned integers to Parametrizables.
The access to the parameters of the objects will be done through this collection.
Definition at line 63 of file ParametrizableCollection.h.
|
inline |
Create an empty object set.
Definition at line 87 of file ParametrizableCollection.h.
|
inline |
Definition at line 94 of file ParametrizableCollection.h.
References bpp::ParametrizableCollection< N >::objectsSet_.
|
inline |
Definition at line 136 of file ParametrizableCollection.h.
References bpp::ParametrizableCollection< N >::clear().
|
inline |
Add a new object to the set with a given number.
Exception | if the number is already used. See replace function instead. |
object | A pointer toward an object, that will added to the set. |
WARNING! The set will now be the owner of the pointer, and will destroy it if needed! Copy the object first if you don't want it to be lost!
objectIndex | The number of the object in the Collection |
Definition at line 261 of file ParametrizableCollection.h.
References bpp::AbstractParameterAliasable::addParameter_(), bpp::AbstractParameterAliasable::aliasParameters(), bpp::ParameterAliasable::getAlias(), bpp::ParametrizableCollection< N >::objectsSet_, bpp::Parameter::setName(), and bpp::TextTools::toString().
Referenced by bpp::ParametrizableCollection< N >::replaceObject().
|
inlineprotectedinherited |
Definition at line 212 of file AbstractParameterAliasable.h.
References bpp::ParameterList::addParameter(), bpp::AbstractParametrizable::addParameter_(), bpp::Parameter::clone(), and bpp::AbstractParameterAliasable::independentParameters_.
Referenced by bpp::ParametrizableCollection< N >::addObject(), bpp::BetaDiscreteDistribution::BetaDiscreteDistribution(), bpp::ConstantDistribution::ConstantDistribution(), bpp::DirichletDiscreteDistribution::DirichletDiscreteDistribution(), bpp::ExponentialDiscreteDistribution::ExponentialDiscreteDistribution(), bpp::GammaDiscreteDistribution::GammaDiscreteDistribution(), bpp::GaussianDiscreteDistribution::GaussianDiscreteDistribution(), bpp::InvariantMixedDiscreteDistribution::InvariantMixedDiscreteDistribution(), bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions(), bpp::SimpleDiscreteDistribution::SimpleDiscreteDistribution(), bpp::Simplex::Simplex(), and bpp::TruncatedExponentialDiscreteDistribution::TruncatedExponentialDiscreteDistribution().
|
inlineprotectedinherited |
Definition at line 218 of file AbstractParameterAliasable.h.
References bpp::ParameterList::addParameters(), bpp::AbstractParametrizable::addParameters_(), and bpp::AbstractParameterAliasable::independentParameters_.
Referenced by bpp::InvariantMixedDiscreteDistribution::InvariantMixedDiscreteDistribution(), and bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions().
|
virtualinherited |
Set two parameters as 'aliased'.
The values of the two parameters will be synchronized, so that setting the value of one parameter will automatically set the value of the other one accordingly.
p1 | Original parameter. |
p2 | Aliased parameter. |
ParameterNotFoundException | if p1 or p2 do not correspond to existing parameters. |
Exception | when trying to perform non-valid association. |
Implements bpp::ParameterAliasable.
Definition at line 103 of file AbstractParameterAliasable.cpp.
References bpp::Parameter::addParameterListener(), bpp::Parameter::getConstraint(), bpp::Constraint::getDescription(), and bpp::Parameter::hasConstraint().
Referenced by bpp::ParametrizableCollection< N >::addObject().
|
virtualinherited |
alias the parameters following the links described in a map, and update the object accordingly. Cycles in aliasing are detected and forbidden.
unparsedParams | the map of the links : <A,B> matches for A->B aliasing. |
verbose | verbosity |
Implements bpp::ParameterAliasable.
Definition at line 151 of file AbstractParameterAliasable.cpp.
References bpp::ParameterList::addParameter(), bpp::AbstractParameterAliasable::aliasParameters(), bpp::ParameterList::clone(), bpp::Parameter::clone(), bpp::ApplicationTools::displayResult(), bpp::ParameterList::getParameter(), bpp::AbstractParametrizable::getParameters(), bpp::Parameter::getValue(), bpp::ParameterList::hasParameter(), bpp::AbstractParametrizable::matchParametersValues(), bpp::ParameterList::size(), and bpp::TextTools::toString().
Referenced by bpp::AbstractParameterAliasable::aliasParameters().
|
inline |
Resets all the information contained in this object.
Definition at line 125 of file ParametrizableCollection.h.
References bpp::ParametrizableCollection< N >::objectsSet_, bpp::AbstractParameterAliasable::resetParameters_(), and bpp::ParametrizableCollection< N >::vChanged_.
Referenced by bpp::ParametrizableCollection< N >::operator=(), and bpp::ParametrizableCollection< N >::~ParametrizableCollection().
|
inline |
Definition at line 182 of file ParametrizableCollection.h.
References bpp::ParametrizableCollection< N >::vChanged_.
|
inlinevirtual |
Create a copy of this object and send a pointer to it.
Implements bpp::Clonable.
Definition at line 141 of file ParametrizableCollection.h.
|
inlineprotectedinherited |
Definition at line 224 of file AbstractParameterAliasable.h.
References bpp::ParameterList::deleteParameter(), bpp::AbstractParametrizable::deleteParameter_(), bpp::Parameter::getName(), bpp::AbstractParametrizable::getParameter_(), bpp::ParameterList::hasParameter(), and bpp::AbstractParameterAliasable::independentParameters_.
Referenced by bpp::AbstractParameterAliasable::deleteParameters_(), and bpp::ParametrizableCollection< N >::removeObject().
|
inlineprotectedinherited |
Definition at line 232 of file AbstractParameterAliasable.h.
References bpp::ParameterList::deleteParameter(), bpp::AbstractParametrizable::deleteParameter_(), bpp::ParameterList::hasParameter(), and bpp::AbstractParameterAliasable::independentParameters_.
|
inlineprotectedinherited |
Definition at line 239 of file AbstractParameterAliasable.h.
References bpp::AbstractParameterAliasable::deleteParameter_().
|
inlinevirtual |
To be called when a parameter has changed. Depending on parameters, this will actualize the corresponding objects in the set.
parameters | The modified parameters. |
Reimplemented from bpp::AbstractParameterAliasable.
Definition at line 150 of file ParametrizableCollection.h.
References bpp::ParametrizableCollection< N >::hasObject(), bpp::ParametrizableCollection< N >::objectsSet_, bpp::ParameterList::size(), and bpp::ParametrizableCollection< N >::vChanged_.
|
virtualinherited |
name | The name of the parameter to look for. |
Implements bpp::ParameterAliasable.
Definition at line 245 of file AbstractParameterAliasable.cpp.
References bpp::AbstractParameterAliasable::aliasListenersRegister_, and bpp::VectorTools::append().
Referenced by bpp::ParametrizableCollection< N >::removeObject().
|
inherited |
Return the list of the names of the parameters that are aliased (directly or not) to one of the parameters of the list.
Definition at line 266 of file AbstractParameterAliasable.cpp.
References bpp::ParameterList::addParameter(), bpp::AbstractParameterAliasable::aliasListenersRegister_, bpp::AbstractParametrizable::getParameter(), and bpp::ParameterList::hasParameter().
|
inherited |
name | The name of the parameter to look for. |
Definition at line 306 of file AbstractParameterAliasable.cpp.
References bpp::AbstractParameterAliasable::aliasListenersRegister_.
|
inlinevirtualinherited |
Get the minimal list of parameters to set the model.
If no parameters are aliased, this is the same a getParameters().
Implements bpp::ParameterAliasable.
Definition at line 162 of file AbstractParameterAliasable.h.
References bpp::AbstractParameterAliasable::independentParameters_.
|
inlinevirtualinherited |
Implements bpp::Parametrizable.
Definition at line 125 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::prefix_.
Referenced by bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions(), bpp::Simplex::setFrequencies(), bpp::AbstractParameterAliasable::setNamespace(), and bpp::BppODiscreteDistributionFormat::write().
|
inlinevirtualinherited |
Get the number of independent parameters.
Implements bpp::ParameterAliasable.
Definition at line 164 of file AbstractParameterAliasable.h.
References bpp::AbstractParameterAliasable::independentParameters_, and bpp::ParameterList::size().
|
inline |
Definition at line 191 of file ParametrizableCollection.h.
References bpp::ParametrizableCollection< N >::objectsSet_.
|
inlinevirtualinherited |
Get the number of parameters.
Implements bpp::Parametrizable.
Definition at line 121 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_, and bpp::ParameterList::size().
Referenced by bpp::AbstractParameterAliasable::AbstractParameterAliasable(), bpp::SimpleDiscreteDistribution::fireParameterChanged(), bpp::AbstractParameterAliasable::operator=(), bpp::ConstantDistribution::restrictToConstraint(), and bpp::SimpleDiscreteDistribution::restrictToConstraint().
|
inlinevirtualinherited |
Get the parameter with specified name.
name | The name of the parameter to look for. |
ParameterNotFoundException | if no parameter with this name is found. |
Implements bpp::Parametrizable.
Definition at line 79 of file AbstractParametrizable.h.
References bpp::ParameterList::getParameter(), bpp::AbstractParametrizable::parameters_, and bpp::AbstractParametrizable::prefix_.
Referenced by bpp::AbstractParameterAliasable::getAliasedParameters(), bpp::ReparametrizationDerivableFirstOrderWrapper::getFirstOrderDerivative(), bpp::AbstractParametrizable::getParameterValue(), bpp::AbstractParametrizable::getParameterWithNamespace_(), bpp::ReparametrizationDerivableSecondOrderWrapper::getSecondOrderDerivative(), and bpp::TestFunction::getValue().
|
inlineprotectedinherited |
name | The name of the parameter. |
ParameterNotFoundException | If no parameter with that name is found in the list. |
Definition at line 175 of file AbstractParametrizable.h.
References bpp::ParameterList::getParameter(), bpp::AbstractParametrizable::parameters_, and bpp::AbstractParametrizable::prefix_.
Referenced by bpp::AbstractParameterAliasable::deleteParameter_(), bpp::AbstractParametrizable::getParameterWithNamespace_(), bpp::ConstantDistribution::restrictToConstraint(), bpp::TruncatedExponentialDiscreteDistribution::restrictToConstraint(), bpp::SimpleDiscreteDistribution::restrictToConstraint(), and bpp::InvariantMixedDiscreteDistribution::restrictToConstraint().
|
inlineprotectedinherited |
Definition at line 199 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_, and bpp::ParameterList::size().
|
inlineprotectedinherited |
Definition at line 205 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_, and bpp::ParameterList::size().
|
virtualinherited |
Resolves a parameter name according to the current namespace.
Implements bpp::Parametrizable.
Definition at line 63 of file AbstractParametrizable.cpp.
References bpp::TextTools::startsWith().
|
inlinevirtualinherited |
Get all parameters available.
Implements bpp::Parametrizable.
Definition at line 77 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_.
Referenced by bpp::AbstractParameterAliasable::aliasParameters(), bpp::AbstractParameterAliasable::fireParameterChanged(), bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions(), and bpp::ParametrizableCollection< N >::removeObject().
|
inlineprotectedinherited |
Definition at line 212 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_.
Referenced by bpp::AbstractParameterAliasable::AbstractParameterAliasable(), and bpp::AbstractParameterAliasable::operator=().
|
inlinevirtualinherited |
Get the value for parameter of name 'name'.
name | The name of the parameter. |
Implements bpp::Parametrizable.
Definition at line 84 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::getParameter(), and bpp::Parameter::getValue().
Referenced by bpp::DirichletDiscreteDistribution::applyParameters(), bpp::ConstantDistribution::fireParameterChanged(), bpp::GaussianDiscreteDistribution::fireParameterChanged(), bpp::ExponentialDiscreteDistribution::fireParameterChanged(), bpp::GammaDiscreteDistribution::fireParameterChanged(), bpp::BetaDiscreteDistribution::fireParameterChanged(), bpp::InvariantMixedDiscreteDistribution::fireParameterChanged(), bpp::AutoCorrelationTransitionMatrix::fireParameterChanged(), bpp::TruncatedExponentialDiscreteDistribution::fireParameterChanged(), bpp::FullHmmTransitionMatrix::fireParameterChanged(), bpp::SimpleDiscreteDistribution::fireParameterChanged(), bpp::MixtureOfDiscreteDistributions::fireParameterChanged(), bpp::Simplex::fireParameterChanged(), bpp::GammaDiscreteDistribution::randC(), bpp::ExponentialDiscreteDistribution::randC(), bpp::BetaDiscreteDistribution::randC(), bpp::TruncatedExponentialDiscreteDistribution::randC(), and bpp::ConstantDistribution::restrictToConstraint().
|
inlineprotectedinherited |
name | The name of the parameter, including its namespace. |
ParameterNotFoundException | If no parameter with that name is found in the list. |
Definition at line 185 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::getParameter_().
|
inlineprotectedinherited |
name | The name of the parameter, including its namespace. |
ParameterNotFoundException | If no parameter with that name is found in the list. |
Definition at line 194 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::getParameter().
|
inline |
Definition at line 177 of file ParametrizableCollection.h.
References bpp::ParametrizableCollection< N >::vChanged_.
|
inline |
Says if there is a object with a given index.
objectIndex | Index of the object in the set. |
Definition at line 200 of file ParametrizableCollection.h.
References bpp::ParametrizableCollection< N >::objectsSet_.
Referenced by bpp::ParametrizableCollection< N >::fireParameterChanged().
|
inlinevirtualinherited |
Tell if there is a parameter with specified name.
name | The name of the parameter to look for. |
Implements bpp::Parametrizable.
Definition at line 75 of file AbstractParametrizable.h.
References bpp::ParameterList::hasParameter(), bpp::AbstractParametrizable::parameters_, and bpp::AbstractParametrizable::prefix_.
|
inline |
Returns the keys of the set.
Definition at line 210 of file ParametrizableCollection.h.
References bpp::ParametrizableCollection< N >::objectsSet_.
|
inlinevirtualinherited |
Update the parameters from parameters.
Only common parameters with parameters will be updated.
parameters | A list of parameters. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implements bpp::Parametrizable.
Definition at line 111 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), bpp::ParameterList::matchParametersValues(), and bpp::AbstractParametrizable::parameters_.
Referenced by bpp::AbstractParameterAliasable::aliasParameters(), bpp::Simplex::setFrequencies(), bpp::ReparametrizationFunctionWrapper::setParameters(), bpp::TestFunction::setParameters(), and bpp::FullHmmTransitionMatrix::setTransitionProbabilities().
|
inline |
Definition at line 105 of file ParametrizableCollection.h.
References bpp::ParametrizableCollection< N >::clear(), bpp::ParametrizableCollection< N >::objectsSet_, bpp::AbstractParameterAliasable::operator=(), and bpp::ParametrizableCollection< N >::vChanged_.
|
inline |
Get one object from the set knowing its index.
objectIndex | Index of the object in the set. |
Definition at line 229 of file ParametrizableCollection.h.
References bpp::ParametrizableCollection< N >::objectsSet_.
|
inline |
Definition at line 238 of file ParametrizableCollection.h.
References bpp::ParametrizableCollection< N >::objectsSet_.
|
inline |
Remove a object from the set, and all corresponding parameters.
objectIndex | The index of the object in the set. |
Definition at line 301 of file ParametrizableCollection.h.
References bpp::AbstractParameterAliasable::deleteParameter_(), bpp::AbstractParameterAliasable::getAlias(), bpp::AbstractParametrizable::getParameters(), bpp::ParametrizableCollection< N >::objectsSet_, bpp::ParameterList::size(), and bpp::AbstractParameterAliasable::unaliasParameters().
Referenced by bpp::ParametrizableCollection< N >::replaceObject().
|
inline |
Replace a object in the set, and returns the replaced one.
objectIndex | The index of the object to be replaced in the set. |
object | the replacing N |
Definition at line 344 of file ParametrizableCollection.h.
References bpp::ParametrizableCollection< N >::addObject(), and bpp::ParametrizableCollection< N >::removeObject().
|
inlineprotectedinherited |
Definition at line 249 of file AbstractParameterAliasable.h.
References bpp::AbstractParameterAliasable::independentParameters_, bpp::ParameterList::reset(), and bpp::AbstractParametrizable::resetParameters_().
Referenced by bpp::ParametrizableCollection< N >::clear().
|
inlinevirtualinherited |
Set the parameters values to be equals to those of parameters.
The list must contain exactly the same parameters (ie same names) than the parameters available.
parameters | A list with all parameters. |
ParameterNotFoundException | If a some parameter in the list is not in params. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implements bpp::Parametrizable.
Definition at line 90 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), bpp::AbstractParametrizable::parameters_, and bpp::ParameterList::setAllParametersValues().
|
virtualinherited |
Set the namespace for the parameter names.
prefix | The 'namespace', that is a prefix to add to all parameter names. If parameter names are already prefixed, the new prefix will be used instead. |
Implements bpp::Parametrizable.
Reimplemented in bpp::MixtureOfDiscreteDistributions, and bpp::InvariantMixedDiscreteDistribution.
Definition at line 218 of file AbstractParameterAliasable.cpp.
References bpp::AbstractParameterAliasable::aliasListenersRegister_, bpp::AbstractParametrizable::getNamespace(), bpp::AbstractParameterAliasable::independentParameters_, bpp::AbstractParametrizable::setNamespace(), bpp::ParameterList::size(), and bpp::TextTools::startsWith().
Referenced by bpp::InvariantMixedDiscreteDistribution::setNamespace(), and bpp::MixtureOfDiscreteDistributions::setNamespace().
|
inlinevirtualinherited |
Update the parameters from parameters.
parameters must be a subset of all parameters available.
parameters | A list containing all parameters to update. |
ParameterNotFoundException | If a some parameter in params is not in the list. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implements bpp::Parametrizable.
Definition at line 104 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), bpp::AbstractParametrizable::parameters_, and bpp::ParameterList::setParametersValues().
Referenced by bpp::LowMemoryRescaledHmmLikelihood::setParameters(), bpp::LogsumHmmLikelihood::setParameters(), and bpp::RescaledHmmLikelihood::setParameters().
|
inlinevirtualinherited |
Set the value of parameter with name name to be equal to value.
name | the name of the parameter to set. |
value | The value of the parameter. |
ParameterNotFoundException | If no parameter in the list has the name name. |
ConstraintException | If value does not match the constraint associated to parameter name. |
Implements bpp::Parametrizable.
Definition at line 97 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), bpp::AbstractParametrizable::parameters_, bpp::AbstractParametrizable::prefix_, bpp::ParameterList::setParameterValue(), and bpp::ParameterList::subList().
|
virtualinherited |
Detach two parameters previously set as 'aliased'.
The values of the two parameters will now be independent.
p1 | Original parameter. |
p2 | Aliased parameter. |
ParameterNotFoundException | if p1 or p2 do not correspond to existing parameters. |
Exception | when trying to perform non-valid dissociation. |
Implements bpp::ParameterAliasable.
Definition at line 198 of file AbstractParameterAliasable.cpp.
Referenced by bpp::ParametrizableCollection< N >::removeObject().
|
protected |
Contains all objects used.
Definition at line 71 of file ParametrizableCollection.h.
Referenced by bpp::ParametrizableCollection< N >::addObject(), bpp::ParametrizableCollection< N >::clear(), bpp::ParametrizableCollection< N >::fireParameterChanged(), bpp::ParametrizableCollection< N >::getNumberOfObjects(), bpp::ParametrizableCollection< N >::hasObject(), bpp::ParametrizableCollection< N >::keys(), bpp::ParametrizableCollection< N >::operator=(), bpp::ParametrizableCollection< N >::operator[](), bpp::ParametrizableCollection< N >::ParametrizableCollection(), and bpp::ParametrizableCollection< N >::removeObject().
|
protected |
A vector of the numbers of objects that have changed during the last fireParameterChanged.
Definition at line 79 of file ParametrizableCollection.h.
Referenced by bpp::ParametrizableCollection< N >::clear(), bpp::ParametrizableCollection< N >::clearChanged(), bpp::ParametrizableCollection< N >::fireParameterChanged(), bpp::ParametrizableCollection< N >::hasChanged(), and bpp::ParametrizableCollection< N >::operator=().