Discounting commodity forward engine. More...
#include <qle/pricingengines/discountingcommodityforwardengine.hpp>
Inheritance diagram for DiscountingCommodityForwardEngine:
Collaboration diagram for DiscountingCommodityForwardEngine:Public Member Functions | |
Constructors | |
| DiscountingCommodityForwardEngine (const QuantLib::Handle< QuantLib::YieldTermStructure > &discountCurve, boost::optional< bool > includeSettlementDateFlows=boost::none, const QuantLib::Date &npvDate=QuantLib::Date()) | |
PricingEngine interface | |
| void | calculate () const override |
Inspectors | |
| QuantLib::Handle< QuantLib::YieldTermStructure > | discountCurve_ |
| boost::optional< bool > | includeSettlementDateFlows_ |
| QuantLib::Date | npvDate_ |
| const QuantLib::Handle< QuantLib::YieldTermStructure > & | discountCurve () const |
Discounting commodity forward engine.
This class implements pricing of a commodity forward by discounting the future nominal cash flows using the respective yield curve.
Definition at line 42 of file discountingcommodityforwardengine.hpp.
| DiscountingCommodityForwardEngine | ( | const QuantLib::Handle< QuantLib::YieldTermStructure > & | discountCurve, |
| boost::optional< bool > | includeSettlementDateFlows = boost::none, |
||
| const QuantLib::Date & | npvDate = QuantLib::Date() |
||
| ) |
| discountCurve | The discount curve to discount the forward cashflow. |
| includeSettlementDateFlows | If true (false), cashflows on the forward maturity are (are not) included in the NPV. |
| npvDate | Discount to this date. If not given, is set to the evaluation date |
Definition at line 28 of file discountingcommodityforwardengine.cpp.
|
override |
Definition at line 37 of file discountingcommodityforwardengine.cpp.
| const QuantLib::Handle< QuantLib::YieldTermStructure > & discountCurve | ( | ) | const |
Definition at line 63 of file discountingcommodityforwardengine.hpp.
|
private |
Definition at line 67 of file discountingcommodityforwardengine.hpp.
|
private |
Definition at line 68 of file discountingcommodityforwardengine.hpp.
|
private |
Definition at line 69 of file discountingcommodityforwardengine.hpp.