Payment discounting engine. More...
#include <qle/pricingengines/paymentdiscountingengine.hpp>
Inheritance diagram for PaymentDiscountingEngine:
Collaboration diagram for PaymentDiscountingEngine:Public Member Functions | |
Constructors | |
| PaymentDiscountingEngine (const Handle< YieldTermStructure > &discountCurve, const Handle< Quote > &spotFX=Handle< Quote >(), boost::optional< bool > includeSettlementDateFlows=boost::none, const Date &settlementDate=Date(), const Date &npvDate=Date()) | |
PricingEngine interface | |
| void | calculate () const override |
Inspectors | |
| Handle< YieldTermStructure > | discountCurve_ |
| Handle< Quote > | spotFX_ |
| boost::optional< bool > | includeSettlementDateFlows_ |
| Date | settlementDate_ |
| Date | npvDate_ |
| const Handle< YieldTermStructure > & | discountCurve () const |
| const Handle< Quote > & | spotFX () const |
Payment discounting engine.
This class implements a discounting engine for a single cash flow. The cash flow is discounted using its currency's discount curve. Optionally, the NPV is converted into a different NPV currency. The FX spot rate for that purpose converts the in-currency NPV by multiplication.
Definition at line 42 of file paymentdiscountingengine.hpp.
| PaymentDiscountingEngine | ( | const Handle< YieldTermStructure > & | discountCurve, |
| const Handle< Quote > & | spotFX = Handle<Quote>(), |
||
| boost::optional< bool > | includeSettlementDateFlows = boost::none, |
||
| const Date & | settlementDate = Date(), |
||
| const Date & | npvDate = Date() |
||
| ) |
| discountCurve | Discount curve for the cash flow |
| spotFX | The market spot rate quote for multiplicative conversion into the NPV currency, can be empty |
| includeSettlementDateFlows,settlementDate | If includeSettlementDateFlows is true (false), cashflows on the settlementDate are (not) included in the NPV. If not given the settlement date is set to the npv date. |
| npvDate | Discount to this date. If not given the npv date is set to the evaluation date |
Definition at line 24 of file paymentdiscountingengine.cpp.
Here is the call graph for this function:
|
override |
Definition at line 36 of file paymentdiscountingengine.cpp.
| const Handle< YieldTermStructure > & discountCurve | ( | ) | const |
Definition at line 72 of file paymentdiscountingengine.hpp.
| const Handle< Quote > & spotFX | ( | ) | const |
Definition at line 73 of file paymentdiscountingengine.hpp.
Here is the caller graph for this function:
|
private |
Definition at line 77 of file paymentdiscountingengine.hpp.
|
private |
Definition at line 78 of file paymentdiscountingengine.hpp.
|
private |
Definition at line 79 of file paymentdiscountingengine.hpp.
|
private |
Definition at line 80 of file paymentdiscountingengine.hpp.
|
private |
Definition at line 81 of file paymentdiscountingengine.hpp.