Live Cells C++
Reactive Programming for C++
|
Provides an interface for a cell with a value that is dependent on one or more argument cells. More...
#include <dependent_cell.hpp>
Public Member Functions | |
dependent_cell (Ts... args) | |
Create a cell with a value dependent on the argument cells in args. | |
void | add_observer (observer::ref o) const |
void | remove_observer (observer::ref o) const |
Protected Attributes | |
merged_observable< Ts... > | observable |
Provides an interface for a cell with a value that is dependent on one or more argument cells.
The observers of this cell are notified when the values of the argument cells change.
|
inline |
Create a cell with a value dependent on the argument cells in args.
The observers of this cell are notified whenever the value of one of args changes.
args | Argument cells |