Notifies one or more observers of state change. More...
#include <glv_observer_pattern.h>
Public Member Functions | |
void | attach (callback cb, Update::t n, void *rcvr=0) |
Attach a new notification callback, type, and receiver. | |
void | detach (callback cb, Update::t n, void *rcvr=0) |
Detach an existing notification callback, type, and receiver. | |
void | notify (void *sender, Update::t n, void *data=0) |
Notify observers of a specific update type. | |
void | notify (Update::t n, void *data=0) |
Notify observers of a specific update type. | |
template<class T > | |
void | notify (Update::t n, const ChangedValue< T > &v) |
Notify observers of a specific update type. | |
int | numObservers (Update::t n) const |
Returns number of observers for this update type. |
Notifies one or more observers of state change.