|
Live Cells C++
Reactive Programming for C++
|
A cell with a value that is a function of one or more argument cells. More...
#include <compute_cell.hpp>


Public Member Functions | |
| compute_cell_base (F compute, Ts... args) | |
| Create a cell with a value that is a function of the values of the cells args. | |
| auto | value () const |
| Get the value of the cell. | |
Public Member Functions inherited from live_cells::dependent_cell< Ts... > | |
| 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 |
Additional Inherited Members | |
Protected Attributes inherited from live_cells::dependent_cell< Ts... > | |
| merged_observable< Ts... > | observable |
A cell with a value that is a function of one or more argument cells.
The value computation function is provided to this class on construction.
Cell concept.
|
inline |
Create a cell with a value that is a function of the values of the cells args.
| compute | A function of no arguments, that is called to compute the cell's value when necessary. |
| args | Argument cells referenced by compute |
|
inline |
Get the value of the cell.