18#ifndef LIVE_CELLS_STATEFUL_CELL_HPP
19#define LIVE_CELLS_STATEFUL_CELL_HPP
23#include "observable.hpp"
24#include "cell_state.hpp"
63 template <
typename...
Args>
A computed cell which determines its argument cells at runtime.
Definition dynamic_compute_cell.hpp:153
Dynamically type key container.
Definition keys.hpp:76
std::shared_ptr< observer > ref
Shared pointer to an observer.
Definition types.hpp:37
Maintains the association between keys and cell states.
Definition cell_state.hpp:164
Base class for a cell with a state.
Definition stateful_cell.hpp:42
std::shared_ptr< S > state
Reference to the cell's state.
Definition stateful_cell.hpp:105
void add_observer(observer::ref o) const
Add an observer to the cell.
Definition stateful_cell.hpp:83
key_ref key() const
Get the key identifying the cell.
Definition stateful_cell.hpp:74
stateful_cell(key_ref k, Args... args)
Create a stateful cell and associate it with a state.
Definition stateful_cell.hpp:64
const key_ref key_
Key identifying the cell.
Definition stateful_cell.hpp:100
void remove_observer(observer::ref o) const
Remove an observer from the cell.
Definition stateful_cell.hpp:92
Definition boolean.hpp:26