RelinkableHandle Class Template Reference

#include <relinkablehandle.hpp>

Inheritance diagram for RelinkableHandle:

Inheritance graph
[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

RelinkableHandle const Handle< Type > &  h = Handle< Type >(),
bool  registerAsObserver = true
[explicit]
 

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.


The documentation for this class was generated from the following file:

QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen