RelinkableHandle Class Template Reference
#include <ql/handle.hpp>
Inheritance diagram for RelinkableHandle:

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:
-
FRA.cpp, Repo.cpp, and swapvaluation.cpp.
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) |
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 > & | , | |
bool | registerAsObserver = true | |||
) |