Public Member Functions

glv::Notifier Class Reference

Notifies one or more observers of state change. More...

#include <glv_observer_pattern.h>

Inheritance diagram for glv::Notifier:
glv::View glv::GLV glv::Grid glv::Group glv::View3D glv::Widget glv::Plot glv::Box glv::Table glv::Buttons glv::Label glv::NumberDialer glv::Sliders glv::SliderVector< Dim > glv::TextView glv::SliderVector< 2 >

List of all members.

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.

Detailed Description

Notifies one or more observers of state change.


The documentation for this class was generated from the following file: