observable and assignable proxy to concrete value More...
#include <ql/utilities/observablevalue.hpp>
Public Member Functions | |
ObservableValue (const T &) | |
ObservableValue (const ObservableValue< T > &) | |
controlled assignment | |
ObservableValue< T > & | operator= (const T &) |
ObservableValue< T > & | operator= (const ObservableValue< T > &) |
operator T () const | |
implicit conversion | |
operator ext::shared_ptr< Observable > () const | |
const T & | value () const |
explicit inspector | |
observable and assignable proxy to concrete value
Observers can be registered with instances of this class so that they are notified when a different value is assigned to such instances. Client code can copy the contained value or pass it to functions via implicit conversion.