RelinkableHandle Class Template Reference

#include <ql/relinkablehandle.hpp>

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 shared pointer: such change will be propagated to all the copies of the instance.

Precondition:
Class "Type" must inherit from Observable


Public Member Functions

 RelinkableHandle (const boost::shared_ptr< Type > &h=boost::shared_ptr< Type >(), bool registerAsObserver=true)
void linkTo (const boost::shared_ptr< Type > &, bool registerAsObserver=true)
const boost::shared_ptr< Type > & currentLink () const
 dereferencing

const boost::shared_ptr< Type > & operator-> () const
bool isNull () const
 Checks if the contained handle points to anything.


Constructor & Destructor Documentation

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

Warning:
see the documentation of Link for issues relatives to registerAsObserver.


Member Function Documentation

void linkTo const boost::shared_ptr< Type > &  ,
bool  registerAsObserver = true
 

Warning:
see the documentation of Link for issues relatives to registerAsObserver.


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