5 #ifndef BPP_NUMERIC_AUTOPARAMETER_H 6 #define BPP_NUMERIC_AUTOPARAMETER_H 12 #include "../Io/OutputStream.h" 38 AutoParameter(
const std::string& name =
"",
double value = 0, std::shared_ptr<ConstraintInterface>
constraint =
nullptr);
103 #endif // BPP_NUMERIC_AUTOPARAMETER_H static std::string CONSTRAINTS_IGNORE
static std::string CONSTRAINTS_KEEP
AutoParameter & operator=(const AutoParameter ¶m)
Assignment operator.
This class is designed to facilitate the manipulation of parameters.
virtual void setMessageHandler(std::shared_ptr< OutputStream > mh)
Set the message handler for this AutoParameter.
std::shared_ptr< OutputStream > messageHandler_
static std::string CONSTRAINTS_AUTO
AutoParameter(const std::string &name="", double value=0, std::shared_ptr< ConstraintInterface > constraint=nullptr)
Build a new AutoParameter.
AutoParameter * clone() const
Create a copy of this object and send a pointer to it.
virtual const ConstraintInterface & constraint() const
Return the constraint associated to this parameter if there is one.
virtual void setValue(double value)
Set the value of this parameter.