QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
Relinkable handle to an observable. More...
#include <handle.hpp>
Public Member Functions | |
RelinkableHandle () | |
RelinkableHandle (const ext::shared_ptr< T > &p, bool registerAsObserver=true) | |
RelinkableHandle (ext::shared_ptr< T > &&p, bool registerAsObserver=true) | |
RelinkableHandle (T *p, bool registerAsObserver=true) | |
void | linkTo (const ext::shared_ptr< T > &h, bool registerAsObserver=true) |
void | linkTo (ext::shared_ptr< T > &&h, bool registerAsObserver=true) |
void | reset () |
![]() | |
Handle () | |
Handle (const ext::shared_ptr< T > &p, bool registerAsObserver=true) | |
Handle (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... | |
Additional Inherited Members | |
![]() | |
ext::shared_ptr< Link > | link_ |
Relinkable handle to an observable.
An instance of this class can be relinked so that it points to another observable. The change will be propagated to all handles that were created as copies of such instance.
Definition at line 117 of file handle.hpp.
RelinkableHandle | ( | ) |
Definition at line 119 of file handle.hpp.
|
explicit |
Definition at line 199 of file handle.hpp.
|
explicit |
Definition at line 204 of file handle.hpp.
|
explicit |
Definition at line 209 of file handle.hpp.
Definition at line 214 of file handle.hpp.
Definition at line 220 of file handle.hpp.
void reset |
Definition at line 226 of file handle.hpp.