| Live Cells C++
    Reactive Programming for C++ | 
A Cell that evaluates to the previous value of another Cell.  
 More...
#include <previous_value_cell.hpp>


| Public Types | |
| typedef C::value_type | value_type | 
| The cell's value type. | |
| Public Member Functions | |
| previous_value_cell (const C &cell) | |
| Create a cell that evaluates to the previous value of cell. | |
| value_type | value () const | 
| Get the value of the cell. | |
| value_type | operator() () const | 
| Get the value of the cell and track it as a dependency. | |
|  Public Member Functions inherited from live_cells::stateful_cell< previous_value_cell_state< C > > | |
| stateful_cell (key_ref k, Args... args) | |
| Create a stateful cell and associate it with a state. | |
| key_ref | key () const | 
| Get the key identifying the cell. | |
| void | add_observer (observer::ref o) const | 
| Add an observer to the cell. | |
| void | remove_observer (observer::ref o) const | 
| Remove an observer from the cell. | |
| Additional Inherited Members | |
|  Protected Attributes inherited from live_cells::stateful_cell< previous_value_cell_state< C > > | |
| const key_ref | key_ | 
| Key identifying the cell. | |
| std::shared_ptr< previous_value_cell_state< C > > | state | 
| Reference to the cell's state. | |
A Cell that evaluates to the previous value of another Cell. 
| 
 | inline | 
Create a cell that evaluates to the previous value of cell.
| cell | The argument cell. | 
| 
 | inline | 
Get the value of the cell and track it as a dependency.
| 
 | inline | 
Get the value of the cell.