marian::DCRangeSetup< T > Class Template Reference
Deeply copyable RangeSetup. More...
#include <rangeSetup.hpp>
Inheritance diagram for marian::DCRangeSetup< T >:

Public Member Functions | |
virtual RangeSetup * | clone () const |
Virtual copy constructor. | |
![]() | |
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:
- C:/Unix/home/OEM/fdm/src/financial/gridRange/rangeSetup.hpp