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 observables.
|
inline |
Definition at line 73 of file dispatcher.h.
References dispatch_map, Observable::get_name(), Observable::get_value(), and object.
Referenced by map().
|
inline |
Definition at line 62 of file dispatcher.h.
References Observable::attach(), dispatch(), dispatch_map, Observable::get_name(), and observables.
|
private |
Definition at line 86 of file dispatcher.h.
Referenced by dispatch(), and map().
|
private |
Definition at line 85 of file dispatcher.h.
Referenced by dispatch().
|
private |
Definition at line 87 of file dispatcher.h.
Referenced by map(), and ~Dispatcher().