18#ifndef LIVE_CELLS_COMPUTED_HPP
19#define LIVE_CELLS_COMPUTED_HPP
24#include "compute_cell.hpp"
25#include "dynamic_compute_cell.hpp"
26#include "exceptions.hpp"
44 template <std::invocable F>
69 template <std::invocable F>
72 std::forward<F>(compute)
90 template <std::invocable F>
116 template <std::invocable F>
120 std::forward<F>(compute)
138 template <
typename A,
typename... As>
145 return std::apply([&] (
auto...
args) {
147 return fn(
args.value()...);
170 template <
typename A,
typename... As>
177 return std::apply([&] (
auto...
args) {
179 return fn(
args.value()...);
A computed cell which determines its argument cells at runtime.
Definition dynamic_compute_cell.hpp:153
Dynamically type key container.
Definition keys.hpp:76
Defines the interface for a key which uniquely identifies a cell.
Definition keys.hpp:33
Definition boolean.hpp:26
auto computed(F &&compute)
Create a cell with a value that is a function of one or more argument cells.
Definition computed.hpp:45
void none()
Stop the computation of the current computed cell's value.
Definition computed.hpp:194
auto make_compute_cell(std::invocable auto f, auto... args)
Definition compute_cell.hpp:100
Cell option specifying that the cell, to which it is applied, should only notify its observers when i...
Definition changes_only_state.hpp:94
Exception indicating that the value of a cell should not be computed.
Definition exceptions.hpp:33