marian::DCRangeSetup< T > Class Template Reference

Deeply copyable RangeSetup. More...

#include <rangeSetup.hpp>

Inheritance diagram for marian::DCRangeSetup< T >:
marian::RangeSetup

Public Member Functions

virtual RangeSetupclone () const
 Virtual copy constructor.
 
- Public Member Functions inherited from marian::RangeSetup
virtual double getUpperBound (Market, SmartPointer< Option >) const =0
 Returns the upper boundary for a given market and option.
 
virtual double getLowerBound (Market, SmartPointer< Option >) const =0
 Returns the lower boundary for a given market and option.
 
virtual ~RangeSetup ()
 Destructor.
 

Detailed Description

template<typename T>
class marian::DCRangeSetup< T >

Class implements Curiously Recurring Template Pattern (see Wikipedia site).

When using polymorphism, one sometimes needs to create copies of objects by the base class pointer. A commonly used idiom for this is adding a virtual clone function that is defined in every derived class. The CRTP can be used to avoid having to duplicate that function or other similar functions in every derived class.

For more information about virtual copy constructor see [14]


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