QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
observable and assignable proxy to concrete value More...
#include <observablevalue.hpp>
Public Member Functions | |
ObservableValue () | |
ObservableValue (T &&) | |
ObservableValue (const T &) | |
ObservableValue (const ObservableValue< T > &) | |
~ObservableValue ()=default | |
controlled assignment | |
T | value_ |
ext::shared_ptr< Observable > | observable_ |
ObservableValue< T > & | operator= (T &&) |
ObservableValue< T > & | operator= (const T &) |
ObservableValue< T > & | operator= (const ObservableValue< T > &) |
operator T () const | |
implicit conversion More... | |
operator ext::shared_ptr< Observable > () const | |
const T & | value () const |
explicit inspector More... | |
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.
Definition at line 42 of file observablevalue.hpp.
Definition at line 69 of file observablevalue.hpp.
ObservableValue | ( | T && | t | ) |
Definition at line 73 of file observablevalue.hpp.
ObservableValue | ( | const T & | t | ) |
Definition at line 77 of file observablevalue.hpp.
ObservableValue | ( | const ObservableValue< T > & | t | ) |
Definition at line 81 of file observablevalue.hpp.
|
default |
ObservableValue< T > & operator= | ( | T && | t | ) |
ObservableValue< T > & operator= | ( | const T & | t | ) |
Definition at line 92 of file observablevalue.hpp.
ObservableValue< T > & operator= | ( | const ObservableValue< T > & | t | ) |
Definition at line 100 of file observablevalue.hpp.
operator T |
implicit conversion
Definition at line 107 of file observablevalue.hpp.
operator ext::shared_ptr< Observable > |
Definition at line 112 of file observablevalue.hpp.
const T & value |
explicit inspector
Definition at line 117 of file observablevalue.hpp.
|
private |
Definition at line 61 of file observablevalue.hpp.
|
private |
Definition at line 62 of file observablevalue.hpp.