RelinkableHandle Class Template Reference
Relinkable handle to an observable. More...
#include <ql/handle.hpp>
Inheritance diagram for RelinkableHandle:

Public Member Functions | |
RelinkableHandle (const boost::shared_ptr< T > &h=boost::shared_ptr< T >(), bool registerAsObserver=true) | |
void | linkTo (const boost::shared_ptr< T > &, bool registerAsObserver=true) |
Detailed Description
template<class T>
class QuantLib::RelinkableHandle< T >
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.
- Precondition:
- Class T must inherit from Observable
- Examples:
-
Bonds.cpp, FittedBondCurve.cpp, FRA.cpp, Repo.cpp, and swapvaluation.cpp.
Constructor & Destructor Documentation
RelinkableHandle | ( | const boost::shared_ptr< T > & | h = boost::shared_ptr<T>() , |
|
bool | registerAsObserver = true | |||
) | [explicit] |
Member Function Documentation
void linkTo | ( | const boost::shared_ptr< T > & | h, | |
bool | registerAsObserver = true | |||
) |