Observable Reference
Generic observable objects for C++
|
Interface used to update a value.
Public Member Functions | |
virtual void | set_value_notifier (std::function< void(ValueType &&)> const ¬ifier)=0 |
Set a functor that can be used to notify the value to be updated of a change. More... | |
virtual auto | get () const -> ValueType=0 |
Retrieve the current value. More... | |
virtual | ~value_updater () |
Destructor. More... | |
value_updater ()=default | |
Value updaters are default-constructible. More... | |
value_updater (value_updater const &)=default | |
Value updaters are copy-constructible. More... | |
value_updater (value_updater &&)=default | |
Value updaters are move-constructible. More... | |
value_updater & | operator= (value_updater const &)=default |
Value updaters are copy-assignable. More... | |
value_updater & | operator= (value_updater &&)=default |
Value updaters are move-assignable. More... | |
|
inlinevirtual |
Destructor.
|
default |
Value updaters are default-constructible.
|
default |
Value updaters are copy-constructible.
|
default |
Value updaters are move-constructible.
|
pure virtual |
Set a functor that can be used to notify the value to be updated of a change.
[in] | notifier | Functor that will notify the value of a change. |
Implemented in observable::expr::expression< ValueType, EvaluatorType >, and observable::expr::expression< ValueType, expression_evaluator >.
|
pure virtual |
Retrieve the current value.
Implemented in observable::expr::expression< ValueType, EvaluatorType >, and observable::expr::expression< ValueType, expression_evaluator >.
|
default |
Value updaters are copy-assignable.
|
default |
Value updaters are move-assignable.