linkTo (3) - Linux Manuals
linkTo: Relinkable handle to an observable.
NAME
QuantLib::RelinkableHandle - Relinkable handle to an observable.
SYNOPSIS
#include <ql/handle.hpp>
Inherits Handle< T >.
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
Constructor & Destructor Documentation
RelinkableHandle (const boost::shared_ptr< T > & h = boost::shared_ptr<T>(), bool registerAsObserver = true) [explicit]
Warning
- see the Handle documentation for issues relatives to registerAsObserver.
Member Function Documentation
void linkTo (const boost::shared_ptr< T > & h, bool registerAsObserver = true)
Warning
- see the Handle documentation for issues relatives to registerAsObserver.
Author
Generated automatically by Doxygen for QuantLib from the source code.