RelinkableHandle Class Template Reference#include <ql/relinkablehandle.hpp>
Inheritance diagram for RelinkableHandle:
[legend]List of all members.
Detailed Description
template<class Type>
class QuantLib::RelinkableHandle< Type >
Globally accessible relinkable pointer.
An instance of this class can be relinked to another Handle: such change will be propagated to all the copies of the instance. - Precondition:
- Class "Type" must inherit from Observable
|
Public Member Functions |
| RelinkableHandle (const Handle< Type > &h=Handle< Type >(), bool registerAsObserver=true) |
void | linkTo (const Handle< Type > &h, bool registerAsObserver=true) |
const Handle< Type > & | operator-> () const |
| dereferencing
|
bool | isNull () const |
| Checks if the contained handle points to anything.
|
Constructor & Destructor Documentation
|
- Warning:
- see the documentation of
Link for issues relatives to registerAsObserver .
|
Member Function Documentation
void linkTo |
( |
const Handle< Type > & |
h, |
|
|
bool |
registerAsObserver = true |
|
) |
|
|
|
- Warning:
- see the documentation of
Link for issues relatives to registerAsObserver .
|
|