Defines the computation function of the state of a dynamic_compute_cell
.
More...
#include <dynamic_compute_cell.hpp>
|
class | dynamic_compute_cell_state< F > |
|
template<std::invocable F>
class live_cells::dynamic_compute_state< F >
Defines the computation function of the state of a dynamic_compute_cell
.
◆ dynamic_compute_state()
template<std::invocable F>
Create the computation state for a dynamic_compute_cell
.
The function compute is called with no arguments, to compute the value of the cell. It should reference its argument cells using the function call operator so that they are registered as dependencies of the computed cell.
- Parameters
-
compute | Function of no arguments called to compute the value of the cell. |
◆ operator()()
template<std::invocable F>
The documentation for this class was generated from the following file: