Live Cells C++
Reactive Programming for C++
|
Allows multiple cells to be observed at once. More...
#include <merged_observable.hpp>
Public Member Functions | |
merged_observable (T first, Ts... rest) | |
Create a merged_observable that adds observers to the cells first and rest... into. | |
void | add_observer (observer::ref o) const |
void | remove_observer (observer::ref o) const |
Allows multiple cells to be observed at once.
This class allows an observer to be added to multiple cells simultaneously via a single call to add_observer()
and remove_observer()
|
inline |
Create a merged_observable
that adds observers to the cells first and rest... into.
When add_observer()
and remove_observer()
are called, they are applied to first and every cell in rest.
first | A cell |
rest | Remaining cells |
|
inline |
Add an observer to every cell given in constructor.
o | The observer to add |
|
inline |
Remove an observer from every cell given in constructor.
o | The observer to remove |