#include "../Features/Feature.h"
Go to the source code of this file.
Classes | |
class | PredictorAlgorithm |
class | Predictor |
#define | PREDICTOR_EXPORT FEATURE_EXPORT |
#define | PREDICTOR_EXPORT_CLASS FEATURE_EXPORT_CLASS |
Defines | |
#define | EXPORT_PREDICTOR(predictor) |
Typedefs | |
typedef parametermap | predictorparams |
typedef vector< unsigned long > | contexttrajectory |
typedef PredictorAlgorithm *(* | getPredictor_t )(const predictorparams ¶ms) |
© 2003-2004 by Rene Mayrhofer, Harald Radi
Harald Radi <harald.radi@nme.at>
|
Value: \ static predictor *pred; \ void INIT_EXPORT library_initialize() { pred = NULL; } \ void FINI_EXPORT library_finalize() { if (pred != NULL) delete pred; } \ \ extern "C" PREDICTOR_EXPORT PredictorAlgorithm* getPredictor(predictorparams ¶ms) { if (pred == NULL) pred = new predictor(params); return pred; } This macro has to be used in global scope and gets substituted with the implementation for exporting a PredictorAlgorithm singleton instance to the framework.
|
|
compiler specific flags to export functions and classes |
|
|
|
Type of the getPredictor function This type definition is needed by the Predictor Wrapper to query a PredictorAlgorithm implementation for an instance of its class. |
|
Parameters passed to predictors When initializing a predictor, an arbitrary number of named (string) parameters can be passed from the application (e.g. read from a config file). These key-value tuples can then be used by the predictor as configuration or initialization values. They are completely predictor specific.
|