presage
0.9.2~beta
|
#include <dispatcher.h>
Public Types | |
typedef void(class_t::* | mbr_func_ptr_t) (const std::string &value) |
typedef std::map< std::string, mbr_func_ptr_t > | dispatch_map_t |
Public Member Functions | |
Dispatcher (class_t *obj) | |
~Dispatcher () | |
void | map (Observable *var, const mbr_func_ptr_t &ptr) |
void | dispatch (const Observable *var) |
Private Attributes | |
class_t * | object |
dispatch_map_t | dispatch_map |
std::list< Observable * > | observables |
Dispatches observable notifications.
Definition at line 42 of file dispatcher.h.
typedef std::map<std::string, mbr_func_ptr_t> Dispatcher< class_t >::dispatch_map_t |
Definition at line 45 of file dispatcher.h.
typedef void(class_t::* Dispatcher< class_t >::mbr_func_ptr_t) (const std::string &value) |
Definition at line 44 of file dispatcher.h.
|
inline |
Definition at line 47 of file dispatcher.h.
|
inline |
Definition at line 52 of file dispatcher.h.
|
inline |
Definition at line 73 of file dispatcher.h.
Referenced by Dispatcher< ARPAPredictor >::map(), DictionaryPredictor::update(), PredictorRegistry::update(), DejavuPredictor::update(), AbbreviationExpansionPredictor::update(), SmoothedNgramPredictor::update(), RecencyPredictor::update(), Selector::update(), ARPAPredictor::update(), PredictorActivator::update(), and ContextTracker::update().
|
inline |
Definition at line 62 of file dispatcher.h.
Referenced by AbbreviationExpansionPredictor::AbbreviationExpansionPredictor(), ARPAPredictor::ARPAPredictor(), ContextTracker::ContextTracker(), DejavuPredictor::DejavuPredictor(), DictionaryPredictor::DictionaryPredictor(), PredictorActivator::PredictorActivator(), PredictorRegistry::PredictorRegistry(), RecencyPredictor::RecencyPredictor(), Selector::Selector(), and SmoothedNgramPredictor::SmoothedNgramPredictor().
|
private |
Definition at line 86 of file dispatcher.h.
Referenced by Dispatcher< ARPAPredictor >::dispatch(), and Dispatcher< ARPAPredictor >::map().
|
private |
Definition at line 85 of file dispatcher.h.
Referenced by Dispatcher< ARPAPredictor >::dispatch().
|
private |
Definition at line 87 of file dispatcher.h.
Referenced by Dispatcher< ARPAPredictor >::map(), and Dispatcher< ARPAPredictor >::~Dispatcher().