26#include <boost/make_shared.hpp>
42 :
CachingEngineBuilder(
"DiscountedCashflows",
"DiscountingCommodityForwardEngine", {
"CommodityForward"}) {}
45 virtual std::string
keyImpl(
const QuantLib::Currency& ccy)
override {
49 virtual QuantLib::ext::shared_ptr<QuantLib::PricingEngine>
engineImpl(
const QuantLib::Currency& ccy)
override {
50 return QuantLib::ext::make_shared<QuantExt::DiscountingCommodityForwardEngine>(
Abstract template engine builder class.
Abstract template EngineBuilder class that can cache engines and coupon pricers.
Engine builder for commodity forward.
CommodityForwardEngineBuilder()
virtual std::string keyImpl(const QuantLib::Currency &ccy) override
virtual QuantLib::ext::shared_ptr< QuantLib::PricingEngine > engineImpl(const QuantLib::Currency &ccy) override
QuantLib::ext::shared_ptr< Market > market_
const string & configuration(const MarketContext &key)
Return a configuration (or the default one if key not found)
Serializable Credit Default Swap.