18#ifndef LIVE_CELLS_MUTABLE_COMPUTED_HPP
19#define LIVE_CELLS_MUTABLE_COMPUTED_HPP
25#include "static_mutable_compute_cell.hpp"
26#include "dynamic_mutable_compute_cell.hpp"
62 template <std::invocable F,
typename R>
66 std::forward<R>(reverse)
108 template <std::invocable F,
typename R>
112 std::forward<R>(reverse)
141 template <
typename A1,
typename A2,
typename... As>
146 auto compute = std::get<1>(
packed);
147 auto reverse = std::get<2>(
packed);
149 return std::apply([&] (
auto...
args) {
151 return compute(
args.value()...);
190 template <
typename A1,
typename A2,
typename... As>
195 auto compute = std::get<1>(
packed);
196 auto reverse = std::get<2>(
packed);
198 return std::apply([&] (
auto...
args) {
200 return compute(
args.value()...);
A computed cell which determines its argument cells at runtime.
Definition dynamic_compute_cell.hpp:153
Definition boolean.hpp:26
auto make_mutable_compute_cell(C compute, R reverse, As... args)
Create a static_mutable_compute_cell with compute function compute, reverse compute function reverse ...
Definition static_mutable_compute_cell.hpp:248
auto mutable_computed(F &&fn, R &&reverse)
Create a mutable computed cell with dynamically determined argument cells.
Definition mutable_computed.hpp:63
Cell option specifying that the cell, to which it is applied, should only notify its observers when i...
Definition changes_only_state.hpp:94