Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
cpicapfloorengines.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2018 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/*
20 Copyright (C) 2011 Chris Kenyon
21
22
23 This file is part of QuantLib, a free-software/open-source library
24 for financial quantitative analysts and developers - http://quantlib.org/
25
26 QuantLib is free software: you can redistribute it and/or modify it
27 under the terms of the QuantLib license. You should have received a
28 copy of the license along with this program; if not, please email
29 <quantlib-dev@lists.sf.net>. The license is also available online at
30 <http://quantlib.org/license.shtml>.
31
32 This program is distributed in the hope that it will be useful, but WITHOUT
33 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
34 FOR A PARTICULAR PURPOSE. See the license for more details.
35 */
36
37/*!
38 \file cpicapfloorengines.hpp
39 \brief Extended version of the QuantLib engine, strike adjustment for seasoned CPI Cap/Floor pricing
40 \ingroup PricingEngines
41*/
42
43#ifndef quantext_cpicapfloorengines_hpp
44#define quantext_cpicapfloorengines_hpp
45
46#include <ql/experimental/inflation/cpicapfloortermpricesurface.hpp>
47#include <ql/instruments/cpicapfloor.hpp>
48#include <ql/pricingengines/genericmodelengine.hpp>
49
50namespace QuantExt {
51
52//! This engine only adds timing functionality (e.g. different lag)
53//! w.r.t. an existing interpolated price surface.
55public:
56 explicit InterpolatingCPICapFloorEngine(const QuantLib::Handle<QuantLib::CPICapFloorTermPriceSurface>&);
57
58 virtual void calculate() const override;
59 virtual std::string name() const { return "InterpolatingCPICapFloorEngine"; }
60
62
63protected:
64 QuantLib::Handle<QuantLib::CPICapFloorTermPriceSurface> priceSurf_;
65};
66
67} // namespace QuantExt
68
69#endif // cpicapfloorengines_hpp
virtual void calculate() const override
QuantLib::Handle< QuantLib::CPICapFloorTermPriceSurface > priceSurf_