Commodity Position instrument wrapper. More...
#include <ored/portfolio/commodityposition.hpp>
Classes | |
class | arguments |
class | engine |
class | results |
Public Member Functions | |
CommodityPositionInstrumentWrapper (const Real quantity, const std::vector< QuantLib::ext::shared_ptr< QuantExt::CommodityIndex > > &commodities, const std::vector< Real > &weights, const std::vector< Handle< Quote > > &fxConversion={}) | |
Instrument interface | |
Real | quantity_ |
std::vector< QuantLib::ext::shared_ptr< QuantExt::CommodityIndex > > | commodities_ |
std::vector< Real > | weights_ |
std::vector< Handle< Quote > > | fxConversion_ |
Handle< Quote > | npvCcyConversion_ |
bool | isExpired () const override |
void | setupArguments (QuantLib::PricingEngine::arguments *) const override |
void | fetchResults (const QuantLib::PricingEngine::results *) const override |
void | setNpvCurrencyConversion (const Handle< Quote > &npvCcyConversion) |
void | setupExpired () const override |
Commodity Position instrument wrapper.
Definition at line 84 of file commodityposition.hpp.
CommodityPositionInstrumentWrapper | ( | const Real | quantity, |
const std::vector< QuantLib::ext::shared_ptr< QuantExt::CommodityIndex > > & | commodities, | ||
const std::vector< Real > & | weights, | ||
const std::vector< Handle< Quote > > & | fxConversion = {} |
||
) |
Definition at line 155 of file commodityposition.cpp.
|
override |
Definition at line 176 of file commodityposition.cpp.
|
override |
Definition at line 180 of file commodityposition.cpp.
|
override |
Definition at line 190 of file commodityposition.cpp.
void setNpvCurrencyConversion | ( | const Handle< Quote > & | npvCcyConversion | ) |
Definition at line 172 of file commodityposition.cpp.
|
overrideprivate |
Definition at line 178 of file commodityposition.cpp.
|
private |
Definition at line 105 of file commodityposition.hpp.
|
private |
Definition at line 106 of file commodityposition.hpp.
|
private |
Definition at line 107 of file commodityposition.hpp.
|
private |
Definition at line 108 of file commodityposition.hpp.
|
private |
Definition at line 109 of file commodityposition.hpp.