Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
clonescenariofactory.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2017 Quaternion Risk Management Ltd
3 All rights reserved.
4
5 This file is part of ORE, a free-software/open-source library
6 for transparent pricing and risk analysis - http://opensourcerisk.org
7
8 ORE is free software: you can redistribute it and/or modify it
9 under the terms of the Modified BSD License. You should have received a
10 copy of the license along with this program.
11 The license is also available online at <http://opensourcerisk.org>
12
13 This program is distributed on the basis that it will form a useful
14 contribution to risk analytics and model standardisation, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19/*! \file orea/scenario/clonescenariofactory.hpp
20 \brief factory class for cloning a cached scenario
21 \ingroup scenario
22*/
23
24#pragma once
25
27
28namespace ore {
29namespace analytics {
30
31//! Factory class for cloning scenario objects
32/*! \ingroup scenario
33 */
35public:
36 //! Constructor
37 CloneScenarioFactory(const QuantLib::ext::shared_ptr<Scenario>& baseScenario);
38 //! returns a new scenario, using the base scenario as a starting point
39 const QuantLib::ext::shared_ptr<Scenario> buildScenario(Date asof, bool isAbsolute, const std::string& label = "",
40 Real numeraire = 0.0) const override;
41
42private:
43 QuantLib::ext::shared_ptr<Scenario> baseScenario_;
44};
45
46} // namespace analytics
47} // namespace ore
Factory class for cloning scenario objects.
QuantLib::ext::shared_ptr< Scenario > baseScenario_
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
Scenario factory base class.
factory classes for scenarios
Date asof(14, Jun, 2018)