Logo
Reference manual - version orea_version
Public Member Functions | List of all members
ClonedScenarioGenerator Class Reference
+ Inheritance diagram for ClonedScenarioGenerator:

Public Member Functions

 ClonedScenarioGenerator (const QuantLib::ext::shared_ptr< ScenarioGenerator > &scenarioGenerator, const std::vector< Date > &dates, const Size nSamples)
 
QuantLib::ext::shared_ptr< Scenarionext (const Date &d) override
 Return the next scenario for the given date.
 
virtual void reset () override
 Reset the generator so calls to next() return the first scenario. More...
 
- Public Member Functions inherited from ScenarioGenerator
virtual ~ScenarioGenerator ()
 Default destructor.
 

Member Function Documentation

◆ reset()

virtual void reset ( )
overridevirtual

Reset the generator so calls to next() return the first scenario.

This allows re-generation of scenarios if required.

Implements ScenarioGenerator.