26#include <boost/make_shared.hpp>
29#include <ql/pricingengines/swap/discountingswapengine.hpp>
45 virtual std::string
keyImpl(
const Currency& ccy)
override {
return ccy.code(); }
47 virtual QuantLib::ext::shared_ptr<QuantLib::PricingEngine>
engineImpl(
const Currency& ccy)
override {
50 return QuantLib::ext::make_shared<QuantLib::DiscountingSwapEngine>(yts);
Abstract template engine builder class.
Abstract template EngineBuilder class that can cache engines and coupon pricers.
Engine builder for Commodity Swaps.
virtual std::string keyImpl(const Currency &ccy) override
virtual QuantLib::ext::shared_ptr< QuantLib::PricingEngine > engineImpl(const Currency &ccy) override
CommoditySwapEngineBuilder()
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.