OpenMS
2.7.0
|
Stores the name and parameters of a model. More...
#include <OpenMS/TRANSFORMATIONS/FEATUREFINDER/ModelDescription.h>
Public Member Functions | |
ModelDescription () | |
Default constructor. More... | |
ModelDescription (const ModelDescription &source) | |
copy constructor More... | |
ModelDescription (const BaseModel< D > *model) | |
constructor provided for convenience More... | |
virtual | ~ModelDescription () |
destructor More... | |
virtual ModelDescription & | operator= (const ModelDescription &source) |
assignment operator More... | |
BaseModel< D > * | createModel () |
const String & | getName () const |
Non-mutable access to model name. More... | |
String & | getName () |
Mutable access to the model name. More... | |
void | setName (const String &name) |
Set the model name. More... | |
const Param & | getParam () const |
Non-mutable access to model parameters. More... | |
Param & | getParam () |
Mutable access to the model parameters. More... | |
void | setParam (const Param ¶m) |
Set the model parameters. More... | |
Predicates | |
String | name_ |
Param | parameters_ |
virtual bool | operator== (const ModelDescription &rhs) const |
virtual bool | operator!= (const ModelDescription &rhs) const |
Stores the name and parameters of a model.
This class also allows reconstruction of the model.
|
inline |
Default constructor.
|
inline |
copy constructor
|
inline |
constructor provided for convenience
|
inlinevirtual |
destructor
|
inline |
creates model from the parameters defined in this class returns 0 if no description is set.
References ModelDescription< D >::name_, ModelDescription< D >::parameters_, and DefaultParamHandler::setParameters().
Referenced by ProductModel< 2 >::operator=(), and ProductModel< 2 >::ProductModel().
|
inline |
Mutable access to the model name.
References ModelDescription< D >::name_.
|
inline |
|
inline |
Mutable access to the model parameters.
References ModelDescription< D >::parameters_.
|
inline |
Non-mutable access to model parameters.
References ModelDescription< D >::parameters_.
|
inlinevirtual |
References ModelDescription< D >::operator==().
|
inlinevirtual |
assignment operator
References ModelDescription< D >::name_, and ModelDescription< D >::parameters_.
|
inlinevirtual |
References ModelDescription< D >::name_, and ModelDescription< D >::parameters_.
Referenced by ModelDescription< D >::operator!=().
|
inline |
Set the model name.
References ModelDescription< D >::name_.
|
inline |
Set the model parameters.
References ModelDescription< D >::parameters_.
|
protected |
|
protected |