QuantLib_RelinkableHandle man page

RelinkableHandle< T > — Relinkable handle to an observable.

Synopsis

#include <ql/handle.hpp>

Inherits Handle< T >.

Public Member Functions

RelinkableHandle (const boost::shared_ptr< T > &p=boost::shared_ptr< T >(), bool registerAsObserver=true)

RelinkableHandle (T *p, bool registerAsObserver=true)

void linkTo (const boost::shared_ptr< T > &, bool registerAsObserver=true)

Additional Inherited Members

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

Warning

see the Handle documentation for issues relatives to registerAsObserver.

Examples: Bonds.cpp, FittedBondCurve.cpp, FRA.cpp, Repo.cpp, and swapvaluation.cpp.

Author

Generated automatically by Doxygen for QuantLib from the source code.

Referenced By

linkTo(3) and RelinkableHandle(3) are aliases of QuantLib_RelinkableHandle(3).

Fri Sep 23 2016 Version 1.8.1 QuantLib