Public Member Functions | |
void | addLearner (const string &learnerName, BaseLearner *pLearnerToRegister) |
Register a weak learner. | |
bool | hasLearner (const string &learnerName) |
Check if a given learner has been registered. | |
BaseLearner * | getLearner (const string &learnerName) |
Return the allocated learner object. | |
void | getList (vector< string > &learnersList) |
Return the list of the learners currently registered. | |
Private Attributes | |
map< string, BaseLearner * > | _learners |
The map of the registered learners. |
Works pretty much like a class factory.
Definition at line 66 of file BaseLearner.h.
|
Register a weak learner.
Definition at line 77 of file BaseLearner.h. References BaseLearner::LearnersRegs::_learners. |
|
Return the allocated learner object.
Definition at line 93 of file BaseLearner.h. References BaseLearner::LearnersRegs::_learners. |
|
Return the list of the learners currently registered.
Definition at line 101 of file BaseLearner.h. References BaseLearner::LearnersRegs::_learners. |
|
Check if a given learner has been registered.
Definition at line 85 of file BaseLearner.h. References BaseLearner::LearnersRegs::_learners. |