QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
FdmSpreadPayoffInnerValue Class Reference

#include <fdmspreadpayoffinnervalue.hpp>

+ Inheritance diagram for FdmSpreadPayoffInnerValue:
+ Collaboration diagram for FdmSpreadPayoffInnerValue:

Public Member Functions

 FdmSpreadPayoffInnerValue (ext::shared_ptr< BasketPayoff > payoff, ext::shared_ptr< FdmInnerValueCalculator > calc1, ext::shared_ptr< FdmInnerValueCalculator > calc2)
 
Real innerValue (const FdmLinearOpIterator &iter, Time t) override
 
Real avgInnerValue (const FdmLinearOpIterator &iter, Time t) override
 
- Public Member Functions inherited from FdmInnerValueCalculator
virtual ~FdmInnerValueCalculator ()=default
 
virtual Real innerValue (const FdmLinearOpIterator &iter, Time t)=0
 
virtual Real avgInnerValue (const FdmLinearOpIterator &iter, Time t)=0
 

Private Attributes

const ext::shared_ptr< BasketPayoffpayoff_
 
const ext::shared_ptr< FdmInnerValueCalculatorcalc1_
 
const ext::shared_ptr< FdmInnerValueCalculatorcalc2_
 

Detailed Description

Definition at line 33 of file fdmspreadpayoffinnervalue.hpp.

Constructor & Destructor Documentation

◆ FdmSpreadPayoffInnerValue()

FdmSpreadPayoffInnerValue ( ext::shared_ptr< BasketPayoff payoff,
ext::shared_ptr< FdmInnerValueCalculator calc1,
ext::shared_ptr< FdmInnerValueCalculator calc2 
)

Definition at line 35 of file fdmspreadpayoffinnervalue.hpp.

Member Function Documentation

◆ innerValue()

Real innerValue ( const FdmLinearOpIterator iter,
Time  t 
)
overridevirtual

Implements FdmInnerValueCalculator.

Definition at line 40 of file fdmspreadpayoffinnervalue.hpp.

+ Here is the caller graph for this function:

◆ avgInnerValue()

Real avgInnerValue ( const FdmLinearOpIterator iter,
Time  t 
)
overridevirtual

Implements FdmInnerValueCalculator.

Definition at line 47 of file fdmspreadpayoffinnervalue.hpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ payoff_

const ext::shared_ptr<BasketPayoff> payoff_
private

Definition at line 52 of file fdmspreadpayoffinnervalue.hpp.

◆ calc1_

const ext::shared_ptr<FdmInnerValueCalculator> calc1_
private

Definition at line 53 of file fdmspreadpayoffinnervalue.hpp.

◆ calc2_

const ext::shared_ptr<FdmInnerValueCalculator> calc2_
private

Definition at line 54 of file fdmspreadpayoffinnervalue.hpp.