Live Cells C++
Reactive Programming for C++
|
Defines the interface for observing changes to the value of a Cell
.
More...
#include <types.hpp>
Public Types | |
typedef std::shared_ptr< observer > | ref |
Shared pointer to an observer . | |
Public Member Functions | |
virtual void | will_update (const key_ref &k)=0 |
Notifies this observer that the value of the Cell identified by k is going to change. | |
virtual void | update (const key_ref &k, bool did_change)=0 |
Notifies this observer that the value of the Cell identified by k has changed. | |
Defines the interface for observing changes to the value of a Cell
.
Notifies this observer that the value of the Cell
identified by k has changed.
k | identifying observable |
did_change | true if the value of the cell may have changed, false if it is know that it hasn't changed. |
Implemented in live_cells::compute_cell_state< C >, live_cells::compute_cell_state< dynamic_compute_state< F > >, live_cells::compute_cell_state< store_cell_compute_state< C > >, live_cells::mutable_compute_cell_state< T >, live_cells::mutable_compute_cell_state< std::invoke_result_t< F > >, live_cells::previous_value_cell_state< C >, and live_cells::peek_cell_state< C >.
Notifies this observer that the value of the Cell
identified by k is going to change.
k | identifying observable |
Implemented in live_cells::compute_cell_state< C >, live_cells::compute_cell_state< dynamic_compute_state< F > >, live_cells::compute_cell_state< store_cell_compute_state< C > >, live_cells::mutable_compute_cell_state< T >, live_cells::mutable_compute_cell_state< std::invoke_result_t< F > >, live_cells::peek_cell_state< C >, and live_cells::previous_value_cell_state< C >.