|
CoreComponents 3.0.0
A Modern C++ Toolkit
|
Callback mechanism: get notified on state changes. More...
#include <cc/Trigger>
Public Member Functions | |
| void | connect (Function< void()> &&f) const |
| Connect a new listener f. | |
| void | emit () const |
| Report state change to all listeners. | |
| bool | hasListeners () const |
| Check if anyone is listening. | |
| void | disband () |
| Remove all listeners. | |
| void | operator() (Function< void()> &&f) const |
| Connect a new listener f. | |
| void | operator() () const |
| Report state change to all listeners. | |
Callback mechanism: get notified on state changes.
| void connect | ( | Function< void()> && | f | ) | const |
Connect a new listener f.
| void emit | ( | ) | const |
Report state change to all listeners.
| bool hasListeners | ( | ) | const |
Check if anyone is listening.
| void disband | ( | ) |
Remove all listeners.
| void operator() | ( | Function< void()> && | f | ) | const |
Connect a new listener f.
| void operator() | ( | ) | const |
Report state change to all listeners.