Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
OptionInterpolatorBase Class Referenceabstract

Option surface interpolator base. More...

#include <qle/interpolators/optioninterpolator2d.hpp>

+ Inheritance diagram for OptionInterpolatorBase:
+ Collaboration diagram for OptionInterpolatorBase:

Public Member Functions

virtual ~OptionInterpolatorBase ()
 
 OptionInterpolatorBase (const QuantLib::Date &referenceDate)
 
virtual QuantLib::Real getValue (QuantLib::Time t, QuantLib::Real strike) const =0
 virtual access methods More...
 
virtual QuantLib::Real getValue (QuantLib::Date d, QuantLib::Real strike) const =0
 
const QuantLib::Date & referenceDate () const
 
std::vector< QuantLib::Time > times () const
 
std::vector< QuantLib::Date > expiries () const
 
std::vector< std::vector< QuantLib::Real > > strikes () const
 
std::vector< std::vector< QuantLib::Real > > values () const
 

Protected Attributes

std::vector< QuantLib::Date > expiries_
 
std::vector< QuantLib::Time > times_
 
std::vector< std::vector< QuantLib::Real > > strikes_
 
std::vector< std::vector< QuantLib::Real > > values_
 
QuantLib::Date referenceDate_
 

Detailed Description

Option surface interpolator base.

Definition at line 42 of file optioninterpolator2d.hpp.

Constructor & Destructor Documentation

◆ ~OptionInterpolatorBase()

virtual ~OptionInterpolatorBase ( )
virtual

Definition at line 46 of file optioninterpolator2d.hpp.

46{}

◆ OptionInterpolatorBase()

OptionInterpolatorBase ( const QuantLib::Date &  referenceDate)
explicit

Definition at line 48 of file optioninterpolator2d.hpp.

Member Function Documentation

◆ getValue() [1/2]

virtual QuantLib::Real getValue ( QuantLib::Time  t,
QuantLib::Real  strike 
) const
pure virtual

◆ getValue() [2/2]

virtual QuantLib::Real getValue ( QuantLib::Date  d,
QuantLib::Real  strike 
) const
pure virtual

◆ referenceDate()

const QuantLib::Date & referenceDate ( ) const

Definition at line 54 of file optioninterpolator2d.hpp.

54{ return referenceDate_; }
+ Here is the caller graph for this function:

◆ times()

std::vector< QuantLib::Time > times ( ) const

Definition at line 55 of file optioninterpolator2d.hpp.

55{ return times_; };
std::vector< QuantLib::Time > times_
+ Here is the caller graph for this function:

◆ expiries()

std::vector< QuantLib::Date > expiries ( ) const

Definition at line 56 of file optioninterpolator2d.hpp.

56{ return expiries_; };
std::vector< QuantLib::Date > expiries_
+ Here is the caller graph for this function:

◆ strikes()

std::vector< std::vector< QuantLib::Real > > strikes ( ) const

Definition at line 57 of file optioninterpolator2d.hpp.

57{ return strikes_; };
std::vector< std::vector< QuantLib::Real > > strikes_
+ Here is the caller graph for this function:

◆ values()

std::vector< std::vector< QuantLib::Real > > values ( ) const

Definition at line 58 of file optioninterpolator2d.hpp.

58{ return values_; };
std::vector< std::vector< QuantLib::Real > > values_
+ Here is the caller graph for this function:

Member Data Documentation

◆ expiries_

std::vector<QuantLib::Date> expiries_
protected

Definition at line 61 of file optioninterpolator2d.hpp.

◆ times_

std::vector<QuantLib::Time> times_
protected

Definition at line 62 of file optioninterpolator2d.hpp.

◆ strikes_

std::vector<std::vector<QuantLib::Real> > strikes_
protected

Definition at line 63 of file optioninterpolator2d.hpp.

◆ values_

std::vector<std::vector<QuantLib::Real> > values_
protected

Definition at line 64 of file optioninterpolator2d.hpp.

◆ referenceDate_

QuantLib::Date referenceDate_
protected

Definition at line 65 of file optioninterpolator2d.hpp.