|
Live Cells C++
Reactive Programming for C++
|
Classes | |
| struct | maybe_operator |
Cell operator that creates a maybe cell as if by live_cells::maybe_cell. More... | |
Concepts | |
| concept | Operator |
| Concept defining an operator on a cell. | |
Functions | |
| auto | select (const Cell auto &if_true) |
Create an Operator for conditionally selecting the value of another cell based on the value of the operand cell. | |
| auto | select (const Cell auto &if_true, const Cell auto &if_false) |
Create an Operator for conditionally selecting the value of another cell based on the value of the operand cell. | |
| auto | on_error (const Cell auto &error_value) |
Create an Operator for handling exceptions thrown by the operand Cell. | |
| template<typename E > | |
| auto | on_error (const Cell auto &error_value) |
Create an Operator for handling exceptions of type E thrown by the operand Cell. | |
| auto | operator| (const Cell auto &cell, const maybe_operator &) |
| auto | operator| (const MutableCell auto &cell, const maybe_operator &) |
| template<Cell C, Operator< C > O> | |
| auto | operator| (const C &arg, const O &op) |
Apply an Operator op on a Cell arg. | |
Variables | |
| constexpr maybe_operator | maybe {} |
Cell operator that creates a maybe cell as if by live_cells::maybe_cell. | |
| constexpr auto | peek |
| Operator for reading the value of a cell without reacting to changes. | |
| constexpr auto | previous |
| Operator for creating a cell that evaluates to the previous value of another cell. | |
| constexpr auto | store |
| Operator for caching the value of another cell. | |
| constexpr auto | cache |
| Operator for creating a cell that caches the value of another cell and only notifies its observers when its value has actually changed. | |
Provides functions which can be applied on Cell's using the | operator.
Create an Operator for handling exceptions thrown by the operand Cell.
| error_value | The cell holding the value to use when an exception is thrown by the operand cell. |
Operator. Create an Operator for handling exceptions of type E thrown by the operand Cell.
| error_value | The cell holding the value to use when an exception is thrown by the operand cell. |
Operator. Create an Operator for conditionally selecting the value of another cell based on the value of the operand cell.
| if_true | Cell selected when the value of the operand cell is true. |
Create an Operator for conditionally selecting the value of another cell based on the value of the operand cell.
| if_true | Cell selected when the value of the operand cell is true. |
| if_false | Cell selected when the value of the operand cell is false. |
Operator for creating a cell that caches the value of another cell and only notifies its observers when its value has actually changed.
| cell | The operand Cell |
Cell that has the same value as cell but caches it in memory until it changes.
|
constexpr |
Cell operator that creates a maybe cell as if by live_cells::maybe_cell.
Usage:
This is equivalent to:
Operator for reading the value of a cell without reacting to changes.
| cell | The operand Cell |
Cell that has the same value as cell but does not notify its observers when the value changes. Operator for creating a cell that evaluates to the previous value of another cell.
| cell | cell The argument cell. |
Operator for caching the value of another cell.
| cell | The operand Cell |
Cell that has the same value as cell but caches it in memory until it changes.