QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <pathwiseproductswap.hpp>
Public Member Functions | |
MarketModelPathwiseSwap (const std::vector< Time > &rateTimes, const std::vector< Time > &accruals, const std::vector< Rate > &strikes, Real multiplier=1.0) | |
~MarketModelPathwiseSwap () override=default | |
std::vector< Size > | suggestedNumeraires () const override |
const EvolutionDescription & | evolution () const override |
std::vector< Time > | possibleCashFlowTimes () const override |
Size | numberOfProducts () const override |
Size | maxNumberOfCashFlowsPerProductPerStep () const override |
bool | alreadyDeflated () const override |
void | reset () override |
during simulation put product at start of path More... | |
bool | nextTimeStep (const CurveState ¤tState, std::vector< Size > &numberCashFlowsThisStep, std::vector< std::vector< MarketModelPathwiseMultiProduct::CashFlow > > &cashFlowsGenerated) override |
return value indicates whether path is finished, TRUE means done More... | |
std::unique_ptr< MarketModelPathwiseMultiProduct > | clone () const override |
returns a newly-allocated copy of itself More... | |
Public Member Functions inherited from MarketModelPathwiseMultiProduct | |
virtual | ~MarketModelPathwiseMultiProduct ()=default |
virtual std::vector< Size > | suggestedNumeraires () const =0 |
virtual const EvolutionDescription & | evolution () const =0 |
virtual std::vector< Time > | possibleCashFlowTimes () const =0 |
virtual Size | numberOfProducts () const =0 |
virtual Size | maxNumberOfCashFlowsPerProductPerStep () const =0 |
virtual bool | alreadyDeflated () const =0 |
virtual void | reset ()=0 |
during simulation put product at start of path More... | |
virtual bool | nextTimeStep (const CurveState ¤tState, std::vector< Size > &numberCashFlowsThisStep, std::vector< std::vector< MarketModelPathwiseMultiProduct::CashFlow > > &cashFlowsGenerated)=0 |
return value indicates whether path is finished, TRUE means done More... | |
virtual std::unique_ptr< MarketModelPathwiseMultiProduct > | clone () const =0 |
returns a newly-allocated copy of itself More... | |
Private Attributes | |
std::vector< Real > | rateTimes_ |
std::vector< Real > | accruals_ |
std::vector< Rate > | strikes_ |
Size | numberRates_ |
Real | multiplier_ |
Size | currentIndex_ |
EvolutionDescription | evolution_ |
Swap for doing Greeks. Fairly useless when used directly, but if we want to look a breakable swap it becomes useful.
Definition at line 41 of file pathwiseproductswap.hpp.
MarketModelPathwiseSwap | ( | const std::vector< Time > & | rateTimes, |
const std::vector< Time > & | accruals, | ||
const std::vector< Rate > & | strikes, | ||
Real | multiplier = 1.0 |
||
) |
|
overridedefault |
|
overridevirtual |
Implements MarketModelPathwiseMultiProduct.
Definition at line 94 of file pathwiseproductswap.cpp.
|
overridevirtual |
Implements MarketModelPathwiseMultiProduct.
Definition at line 103 of file pathwiseproductswap.cpp.
|
overridevirtual |
Implements MarketModelPathwiseMultiProduct.
Definition at line 108 of file pathwiseproductswap.cpp.
|
overridevirtual |
Implements MarketModelPathwiseMultiProduct.
Definition at line 113 of file pathwiseproductswap.cpp.
|
overridevirtual |
Implements MarketModelPathwiseMultiProduct.
Definition at line 118 of file pathwiseproductswap.cpp.
|
overridevirtual |
Implements MarketModelPathwiseMultiProduct.
Definition at line 28 of file pathwiseproductswap.cpp.
|
overridevirtual |
during simulation put product at start of path
Implements MarketModelPathwiseMultiProduct.
Definition at line 124 of file pathwiseproductswap.cpp.
|
overridevirtual |
return value indicates whether path is finished, TRUE means done
Implements MarketModelPathwiseMultiProduct.
Definition at line 66 of file pathwiseproductswap.cpp.
|
overridevirtual |
returns a newly-allocated copy of itself
Implements MarketModelPathwiseMultiProduct.
Definition at line 89 of file pathwiseproductswap.cpp.
|
private |
Definition at line 77 of file pathwiseproductswap.hpp.
|
private |
Definition at line 78 of file pathwiseproductswap.hpp.
|
private |
Definition at line 79 of file pathwiseproductswap.hpp.
|
private |
Definition at line 80 of file pathwiseproductswap.hpp.
|
private |
Definition at line 81 of file pathwiseproductswap.hpp.
|
private |
Definition at line 84 of file pathwiseproductswap.hpp.
|
private |
Definition at line 86 of file pathwiseproductswap.hpp.