QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
|
Shared handle to an observable. More...
#include <ql/handle.hpp>
Classes | |
class | Link |
Public Member Functions | |
Constructors | |
| |
Handle () | |
Handle (const ext::shared_ptr< T > &p, bool registerAsObserver=true) | |
const ext::shared_ptr< T > & | currentLink () const |
dereferencing More... | |
const ext::shared_ptr< T > & | operator-> () const |
const ext::shared_ptr< T > & | operator* () const |
bool | empty () const |
checks if the contained shared pointer points to anything More... | |
operator ext::shared_ptr< Observable > () const | |
allows registration as observable More... | |
template<class U > | |
bool | operator== (const Handle< U > &other) const |
equality test More... | |
template<class U > | |
bool | operator!= (const Handle< U > &other) const |
disequality test More... | |
template<class U > | |
bool | operator< (const Handle< U > &other) const |
strict weak ordering More... | |
Protected Attributes | |
ext::shared_ptr< Link > | link_ |
Shared handle to an observable.
All copies of an instance of this class refer to the same observable by means of a relinkable smart pointer. When such pointer is relinked to another observable, the change will be propagated to all the copies.
Definition at line 41 of file handle.hpp.
Handle | ( | ) |
Definition at line 76 of file handle.hpp.
Definition at line 78 of file handle.hpp.
const ext::shared_ptr< T > & currentLink |
dereferencing
Definition at line 148 of file handle.hpp.
const ext::shared_ptr< T > & operator-> |
const ext::shared_ptr< T > & operator* |
bool empty |
checks if the contained shared pointer points to anything
Definition at line 166 of file handle.hpp.
operator ext::shared_ptr< Observable > |
allows registration as observable
Definition at line 171 of file handle.hpp.
equality test
Definition at line 92 of file handle.hpp.
disequality test
Definition at line 95 of file handle.hpp.
strict weak ordering
Definition at line 98 of file handle.hpp.
|
protected |
Definition at line 57 of file handle.hpp.