Signal supporting two parameters. More...
#include <pdf_observer.h>
Public Member Functions | |
Signal () | |
~Signal () | |
template<class T > | |
void | add_slot (T *p, R(T::*func)(A1, A2)) |
Add receiver to receive pre-defined signals. | |
template<class T > | |
bool | remove_slot (T *p, R(T::*func)(A1, A2)) |
Remove receiver from the receivers list. | |
void | broadcast (A1 arg1, A2 arg2) |
Notify all receivers. | |
unsigned int | count () |
Signal supporting two parameters.
Definition at line 376 of file pdf_observer.h.
pdf::Signal< R, A1, A2, UNUSABLE, UNUSABLE, UNUSABLE >::Signal | ( | ) | [inline] |
Definition at line 380 of file pdf_observer.h.
pdf::Signal< R, A1, A2, UNUSABLE, UNUSABLE, UNUSABLE >::~Signal | ( | ) | [inline] |
Definition at line 381 of file pdf_observer.h.
void pdf::Signal< R, A1, A2, UNUSABLE, UNUSABLE, UNUSABLE >::add_slot | ( | T * | p, | |
R(T::*)(A1, A2) | func | |||
) | [inline] |
Add receiver to receive pre-defined signals.
Definition at line 386 of file pdf_observer.h.
void pdf::Signal< R, A1, A2, UNUSABLE, UNUSABLE, UNUSABLE >::broadcast | ( | A1 | arg1, | |
A2 | arg2 | |||
) | [inline] |
Notify all receivers.
Definition at line 403 of file pdf_observer.h.
unsigned int pdf::Signal< R, A1, A2, UNUSABLE, UNUSABLE, UNUSABLE >::count | ( | ) | [inline] |
Definition at line 416 of file pdf_observer.h.
bool pdf::Signal< R, A1, A2, UNUSABLE, UNUSABLE, UNUSABLE >::remove_slot | ( | T * | p, | |
R(T::*)(A1, A2) | func | |||
) | [inline] |
Remove receiver from the receivers list.
Definition at line 395 of file pdf_observer.h.