BaseLearner::LearnersRegs Class Reference

Holds the information about the registered learners. More...

List of all members.

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.
BaseLearnergetLearner (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.


Detailed Description

Holds the information about the registered learners.

Works pretty much like a class factory.

See also:
REGISTER_LEARNER

RegisteredLearners()

create()

Date:
21/11/2005

Definition at line 66 of file BaseLearner.h.


Member Function Documentation

void addLearner const string &  learnerName,
BaseLearner pLearnerToRegister
[inline]
 

Register a weak learner.

Parameters:
learnerName The name of the learner
pLearnerToRegister The allocated learner to register.
Warning:
To be used only with macro REGISTER_LEARNER()!
Date:
21/11/2005

Definition at line 77 of file BaseLearner.h.

References BaseLearner::LearnersRegs::_learners.

BaseLearner* getLearner const string &  learnerName  )  [inline]
 

Return the allocated learner object.

Parameters:
learnerName The name of the learner.
Date:
21/11/2005

Definition at line 93 of file BaseLearner.h.

References BaseLearner::LearnersRegs::_learners.

void getList vector< string > &  learnersList  )  [inline]
 

Return the list of the learners currently registered.

Parameters:
learnersList The list of the learners that will be filled.
Date:
21/11/2005

Definition at line 101 of file BaseLearner.h.

References BaseLearner::LearnersRegs::_learners.

bool hasLearner const string &  learnerName  )  [inline]
 

Check if a given learner has been registered.

Parameters:
learnerName The name of the learner.
Date:
21/11/2005

Definition at line 85 of file BaseLearner.h.

References BaseLearner::LearnersRegs::_learners.


The documentation for this class was generated from the following file:
Generated on Mon Nov 28 21:43:48 2005 for MultiBoost by  doxygen 1.4.5