#include <qle/cashflows/commoditycashflow.hpp>
Public Member Functions | |
CommodityCashFlow (QuantLib::Real quantity, QuantLib::Real spread, QuantLib::Real gearing, bool useFuturePrice, const ext::shared_ptr< CommodityIndex > &index, const ext::shared_ptr< FxIndex > &fxIndex) | |
QuantLib::Real | quantity () const |
QuantLib::Real | spread () const |
QuantLib::Real | gearing () const |
bool | useFuturePrice () const |
ext::shared_ptr< CommodityIndex > | index () const |
ext::shared_ptr< FxIndex > | fxIndex () const |
virtual const std::vector< std::pair< QuantLib::Date, ext::shared_ptr< CommodityIndex > > > & | indices () const =0 |
Return a map of pricing date and corresponding commodity index. More... | |
virtual QuantLib::Date | lastPricingDate () const =0 |
virtual QuantLib::Real | periodQuantity () const =0 |
virtual QuantLib::Real | fixing () const =0 |
Visitability | |
QuantLib::Real | quantity_ |
QuantLib::Real | spread_ |
QuantLib::Real | gearing_ |
bool | useFuturePrice_ |
ext::shared_ptr< CommodityIndex > | index_ |
ext::shared_ptr< FxIndex > | fxIndex_ |
QuantLib::Real | amount_ |
void | accept (QuantLib::AcyclicVisitor &v) override |
Definition at line 80 of file commoditycashflow.hpp.
CommodityCashFlow | ( | QuantLib::Real | quantity, |
QuantLib::Real | spread, | ||
QuantLib::Real | gearing, | ||
bool | useFuturePrice, | ||
const ext::shared_ptr< CommodityIndex > & | index, | ||
const ext::shared_ptr< FxIndex > & | fxIndex | ||
) |
Definition at line 37 of file commoditycashflow.cpp.
QuantLib::Real quantity | ( | ) | const |
Definition at line 84 of file commoditycashflow.hpp.
QuantLib::Real spread | ( | ) | const |
Definition at line 85 of file commoditycashflow.hpp.
QuantLib::Real gearing | ( | ) | const |
Definition at line 86 of file commoditycashflow.hpp.
bool useFuturePrice | ( | ) | const |
Definition at line 87 of file commoditycashflow.hpp.
ext::shared_ptr< CommodityIndex > index | ( | ) | const |
Definition at line 89 of file commoditycashflow.hpp.
ext::shared_ptr< FxIndex > fxIndex | ( | ) | const |
|
pure virtual |
Return a map of pricing date and corresponding commodity index.
Implemented in CommodityIndexedAverageCashFlow, and CommodityIndexedCashFlow.
|
pure virtual |
Implemented in CommodityIndexedAverageCashFlow, and CommodityIndexedCashFlow.
|
pure virtual |
Implemented in CommodityIndexedAverageCashFlow, and CommodityIndexedCashFlow.
|
pure virtual |
Implemented in CommodityIndexedAverageCashFlow, and CommodityIndexedCashFlow.
|
override |
Definition at line 30 of file commoditycashflow.cpp.
|
protected |
Definition at line 104 of file commoditycashflow.hpp.
|
protected |
Definition at line 105 of file commoditycashflow.hpp.
|
protected |
Definition at line 106 of file commoditycashflow.hpp.
|
protected |
Definition at line 107 of file commoditycashflow.hpp.
|
protected |
Definition at line 108 of file commoditycashflow.hpp.
|
protected |
Definition at line 109 of file commoditycashflow.hpp.
|
mutableprotected |
Definition at line 110 of file commoditycashflow.hpp.