26#include <boost/make_shared.hpp>
42 :
CachingEngineBuilder(
"DiscountedCashflows",
"DiscountingEquityForwardEngine", {
"EquityForward"}) {}
45 virtual string keyImpl(
const string& equityName,
const Currency& ccy)
override {
46 return equityName +
"/" + ccy.code();
49 virtual QuantLib::ext::shared_ptr<PricingEngine>
engineImpl(
const string& equityName,
const Currency& ccy)
override {
50 return QuantLib::ext::make_shared<QuantExt::DiscountingEquityForwardEngine>(
Abstract template engine builder class.
Abstract template EngineBuilder class that can cache engines and coupon pricers.
QuantLib::ext::shared_ptr< Market > market_
const string & configuration(const MarketContext &key)
Return a configuration (or the default one if key not found)
Engine Builder for European Equity Forwards.
virtual QuantLib::ext::shared_ptr< PricingEngine > engineImpl(const string &equityName, const Currency &ccy) override
EquityForwardEngineBuilder()
virtual string keyImpl(const string &equityName, const Currency &ccy) override
Serializable Credit Default Swap.