|
presage
0.9.2~beta
|
#include <dummyPredictor.h>


Public Member Functions | |
| DummyPredictor (Configuration *, ContextTracker *, const char *) | |
| ~DummyPredictor () | |
| virtual Prediction | predict (const size_t size, const char **filter) const |
| Generate prediction. More... | |
| virtual void | learn (const std::vector< std::string > &change) |
Public Member Functions inherited from Predictor | |
| Predictor (Configuration *configuration, ContextTracker *contextTracker, const char *predictorName="Predictor", const char *shortDescription="", const char *longDescription="") | |
| virtual | ~Predictor () |
| const std::string | getName () const |
| const std::string | getShortDescription () const |
| const std::string | getLongDescription () const |
Additional Inherited Members | |
Protected Member Functions inherited from Predictor | |
| virtual bool | token_satisfies_filter (const std::string &token, const std::string &prefix, const char **filter) const |
| virtual void | set_logger (const std::string &level) |
Protected Attributes inherited from Predictor | |
| const std::string | name |
| const std::string | shortDescription |
| const std::string | longDescription |
| const std::string | PREDICTORS |
| ContextTracker * | contextTracker |
| Configuration * | configuration |
| Logger< char > | logger |
Dummy predictor is provided here to show how to implement real predictors.
Definition at line 34 of file dummyPredictor.h.
| DummyPredictor::DummyPredictor | ( | Configuration * | config, |
| ContextTracker * | ct, | ||
| const char * | name | ||
| ) |
Definition at line 28 of file dummyPredictor.cpp.
| DummyPredictor::~DummyPredictor | ( | ) |
Definition at line 38 of file dummyPredictor.cpp.
|
virtual |
Implements Predictor.
Definition at line 73 of file dummyPredictor.cpp.
References endl().

|
virtual |
Generate prediction.
| size | desired prediction size |
| filter | filter |
Implements Predictor.
Definition at line 41 of file dummyPredictor.cpp.
References Prediction::addSuggestion().

1.8.14