26#include <boost/make_shared.hpp>
46 const QuantLib::ext::shared_ptr<Scenario>
buildScenario(Date
asof,
bool isAbsolute,
const std::string& label =
"",
47 Real numeraire = 0.0)
const override {
48 auto tmp = QuantLib::ext::make_shared<SimpleScenario>(
asof, label, numeraire,
50 tmp->setAbsolute(isAbsolute);
58 mutable QuantLib::ext::shared_ptr<SimpleScenario::SharedData>
sharedData_;
Scenario factory base class.
Factory class for building simple scenario objects.
SimpleScenarioFactory(const QuantLib::ext::shared_ptr< SimpleScenario::SharedData > &sharedData)
SimpleScenarioFactory(const bool useCommonSharedDataBlock=false)
QuantLib::ext::shared_ptr< SimpleScenario::SharedData > sharedData_
const QuantLib::ext::shared_ptr< Scenario > buildScenario(Date asof, bool isAbsolute, const std::string &label="", Real numeraire=0.0) const override
Build a scenario instance without filling it.
bool useCommonSharedDataBlock_
factory classes for scenarios