Predictor Factory.
More...
#include <PredictorBase.h>
Predictor Factory.
Definition at line 97 of file PredictorBase.h.
◆ ~PredictorFactory()
virtual ufo::PredictorFactory::~PredictorFactory |
( |
| ) |
|
|
virtualdefault |
◆ PredictorFactory()
ufo::PredictorFactory::PredictorFactory |
( |
const std::string & |
name | ) |
|
|
explicitprotected |
Register a maker able to create predictors of type name
.
Definition at line 29 of file PredictorBase.cc.
◆ create()
Create and return a new predictor.
The predictor type is determined by the name
attribute of parameters
. parameters
must be an instance of the subclass of PredictorParametersBase associated with that predictor type, otherwise an exception will be thrown.
Definition at line 40 of file PredictorBase.cc.
◆ createParameters()
◆ getMakerNames()
static std::vector<std::string> ufo::PredictorFactory::getMakerNames |
( |
| ) |
|
|
inlinestatic |
Return the names of all predictors that can be created by one of the registered makers.
Definition at line 112 of file PredictorBase.h.
◆ getMakers()
static std::map< std::string, PredictorFactory * >& ufo::PredictorFactory::getMakers |
( |
| ) |
|
|
inlinestaticprivate |
◆ make()
◆ makeParameters()
◆ predictorExists()
bool ufo::PredictorFactory::predictorExists |
( |
const std::string & |
name | ) |
|
|
static |
Return true if a maker has been registered for a predictor of type name
.
Definition at line 70 of file PredictorBase.cc.
The documentation for this class was generated from the following files: