Factory class for cloning scenario objects. More...
#include <orea/scenario/clonescenariofactory.hpp>
Public Member Functions | |
CloneScenarioFactory (const QuantLib::ext::shared_ptr< Scenario > &baseScenario) | |
Constructor. More... | |
const QuantLib::ext::shared_ptr< Scenario > | buildScenario (Date asof, bool isAbsolute, const std::string &label="", Real numeraire=0.0) const override |
returns a new scenario, using the base scenario as a starting point More... | |
Public Member Functions inherited from ScenarioFactory | |
virtual | ~ScenarioFactory () |
Default destructor. More... | |
virtual const QuantLib::ext::shared_ptr< Scenario > | buildScenario (Date asof, bool isAbsolute, const std::string &label="", Real numeraire=0.0) const =0 |
Build a scenario instance without filling it. More... | |
Private Attributes | |
QuantLib::ext::shared_ptr< Scenario > | baseScenario_ |
Factory class for cloning scenario objects.
Definition at line 34 of file clonescenariofactory.hpp.
CloneScenarioFactory | ( | const QuantLib::ext::shared_ptr< Scenario > & | baseScenario | ) |
Constructor.
Definition at line 26 of file clonescenariofactory.cpp.
|
overridevirtual |
returns a new scenario, using the base scenario as a starting point
Implements ScenarioFactory.
Definition at line 32 of file clonescenariofactory.cpp.
|
private |
Definition at line 43 of file clonescenariofactory.hpp.