25 #ifndef PRESAGE_SELECTOR
26 #define PRESAGE_SELECTOR
44 typedef std::set< std::string, std::less<std::string> >
StringSet;
Tracks user interaction and context.
static const char * REPEAT_SUGGESTIONS
void set_repeat_suggestions(const std::string &value)
static const char * LOGGER
std::map< std::string, mbr_func_ptr_t > dispatch_map
size_t greedy_suggestion_threshold
static const char * SUGGESTIONS
void set_logger(const std::string &value)
static const char * GREEDY_SUGGESTION_THRESHOLD
void thresholdFilter(std::vector< std::string > &)
void clearSuggestedWords()
ContextTracker * contextTracker
void set_greedy_suggestion_threshold(const std::string &value)
Selector(Configuration *, ContextTracker *)
void updateSuggestedWords(const std::vector< std::string > &)
bool get_repeat_suggestions() const
Dispatcher< Selector > dispatcher
void repetitionFilter(std::vector< std::string > &)
std::string previous_prefix
void set_suggestions(const std::string &value)
void(Selector::* mbr_func_ptr_t)(const std::string &)
std::vector< std::string > select(Prediction)
size_t get_greedy_suggestion_threshold() const
size_t get_suggestions() const
std::set< std::string, std::less< std::string > > StringSet