31 if (
auto res = QuantLib::ext::dynamic_pointer_cast<ore::data::ScriptedInstrumentPricingEngine>(
engine_)) {
32 return res->lastCalculationWasValid();
33 }
else if (
auto res = QuantLib::ext::dynamic_pointer_cast<ore::data::ScriptedInstrumentPricingEngineCG>(
engine_)) {
34 return res->lastCalculationWasValid();
37 "internal error: could not cast to ScriptedInstrumentPricingEngine or ScriptedInstrumentPricingEngineCG");
boost::shared_ptr< PricingEngine > engine_
bool lastCalculationWasValid() const
bool isExpired() const override
ScriptedInstrument(const QuantLib::Date &lastRelevantDate)
const QuantLib::Date lastRelevantDate_
scripted instrument pricing engine
scripted instrument pricing engine using a cg model