Bridge Class Template Reference

#include <bridge.hpp>

List of all members.


Detailed Description

template<class T, class T_impl>
class QuantLib::Patterns::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_


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

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