Logo Search packages:      
Sourcecode: quantlib version File versions

QuantLib::RelinkableHandle< T > Class Template Reference

#include <handle.hpp>

Inheritance diagram for QuantLib::RelinkableHandle< T >:

QuantLib::Handle< T >

List of all 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.

Class T must inherit from Observable

Definition at line 107 of file handle.hpp.

Public Member Functions

const boost::shared_ptr< T > & currentLink () const
bool empty () const
 checks if the contained shared pointer points to anything
void linkTo (const boost::shared_ptr< T > &, bool registerAsObserver=true)
 operator boost::shared_ptr< Observable > () const
 allows registration as observable
template<class U>
bool operator!= (const Handle< U > &other)
 disequality test
const boost::shared_ptr< T > & operator-> () const
template<class U>
bool operator< (const Handle< U > &other)
 strict weak ordering
template<class U>
bool operator== (const Handle< U > &other)
 equality test
 RelinkableHandle (const boost::shared_ptr< T > &h=boost::shared_ptr< T >(), bool registerAsObserver=true)

Protected Attributes

boost::shared_ptr< Link > link_

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

Generated by  Doxygen 1.6.0   Back to index