Bridge Class Template Reference

#include <ql/Patterns/bridge.hpp>

List of all members.


Detailed Description

template<class T, class T_impl>
class QuantLib::Bridge< T, T_impl >

The Bridge pattern made explicit.

The typical use of this class is:

class FooImpl; class Foo : public Bridge<Foo,FooImpl> { ... };
which makes it possible to pass instances of class Foo by value while retaining polymorphic behavior.


Public Types

typedef T_impl Impl

Public Member Functions

bool isNull () const

Protected Member Functions

 Bridge (const Handle< Impl > &impl=Handle< Impl >())

Protected Attributes

Handle< Impl > impl_


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