|
| | ObservableValue ()=default |
| | ObservableValue (const T &value) |
| | ObservableValue (const ObservableValue &)=delete |
| ObservableValue & | operator= (const ObservableValue &)=delete |
| void | set (const T &value) override |
| const T & | operator= (const T &value) |
| T & | operator++ () |
| T & | operator-- () |
| T | operator++ (int) |
| T | operator-- (int) |
| const T & | operator+= (const T &value) |
| const T & | operator-= (const T &value) |
| virtual void | set_input (const T &new_value) |
| void | connect_from (ValueProducer< T > *producer) |
| | ValueProducer () |
| | ValueProducer (const T &initial_value) |
| virtual const T & | get () const |
| template<typename VConsumer> |
| std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< T, typenameVConsumer::input_type >::value, std::shared_ptr< VConsumer > >::type | connect_to (std::shared_ptr< VConsumer > consumer) |
| | Connect a producer to a transform with a different input type.
|
| template<typename VConsumer> |
| std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< T, typenameVConsumer::input_type >::value, VConsumer * >::type | connect_to (VConsumer *consumer) |
| template<typename VConsumer> |
| std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< T, typenameVConsumer::input_type >::value, VConsumer * >::type | connect_to (VConsumer &consumer) |
| void | emit (const T &new_value) |
| | Observable () |
| | Observable (Observable &&other) |
| | Move constructor.
|
| void | notify () |
| int | attach (std::function< void()> observer) |
| | Attach an observer callback.
|
| void | detach (int id) |
| | Remove a previously attached observer by its ID.
|
template<class T>
class sensesp::ObservableValue< T >
A value container that notifies its observers if it gets changed.
Definition at line 29 of file observablevalue.h.