Live Cells C++
Reactive Programming for C++
Loading...
Searching...
No Matches
live_cells::changes_only_cell_state< Base > Class Template Reference

Mixin that modifies a compute_cell_state subclass to only notify its observers if the new value of the cell is not equal (!=) to the previous value. More...

#include <changes_only_state.hpp>

Inheritance diagram for live_cells::changes_only_cell_state< Base >:
Collaboration diagram for live_cells::changes_only_cell_state< Base >:

Public Member Functions

void will_update (const key_ref &k) override
 
void update (const key_ref &k, bool changed) override
 

Detailed Description

template<typename Base>
class live_cells::changes_only_cell_state< Base >

Mixin that modifies a compute_cell_state subclass to only notify its observers if the new value of the cell is not equal (!=) to the previous value.

Base is a compute_cell_state subclass, which this class inherits.

Note
This mixin converts the evaluation semantics of the cell from lazy, computed only when the value is actually referenced, to eager, computed whenever the value of an argument cell changes.

The documentation for this class was generated from the following file: