presage
0.9.1
|
#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.
References Dispatcher< class_t >::observables.
|
inline |
Definition at line 73 of file dispatcher.h.
References Dispatcher< class_t >::dispatch_map, endl(), Observable::get_name(), Observable::get_value(), and Dispatcher< class_t >::object.
Referenced by Dispatcher< class_t >::map(), ContextTracker::update(), PredictorActivator::update(), PredictorRegistry::update(), Selector::update(), AbbreviationExpansionPredictor::update(), ARPAPredictor::update(), DejavuPredictor::update(), DictionaryPredictor::update(), RecencyPredictor::update(), and SmoothedNgramPredictor::update().
|
inline |
Definition at line 62 of file dispatcher.h.
References Observable::attach(), Dispatcher< class_t >::dispatch(), Dispatcher< class_t >::dispatch_map, Observable::get_name(), and Dispatcher< class_t >::observables.
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< class_t >::dispatch(), and Dispatcher< class_t >::map().
|
private |
Definition at line 85 of file dispatcher.h.
Referenced by Dispatcher< class_t >::dispatch().
|
private |
Definition at line 87 of file dispatcher.h.
Referenced by Dispatcher< class_t >::map(), and Dispatcher< class_t >::~Dispatcher().