QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
frhicp.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2009 Chris Kenyon
5 Copyright (C) 2021 Ralf Konrad Eckel
6
7 This file is part of QuantLib, a free-software/open-source library
8 for financial quantitative analysts and developers - http://quantlib.org/
9
10 QuantLib is free software: you can redistribute it and/or modify it
11 under the terms of the QuantLib license. You should have received a
12 copy of the license along with this program; if not, please email
13 <quantlib-dev@lists.sf.net>. The license is also available online at
14 <http://quantlib.org/license.shtml>.
15
16 This program is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18 FOR A PARTICULAR PURPOSE. See the license for more details.
19*/
20
25#ifndef quantlib_frhicp_hpp
26#define quantlib_frhicp_hpp
27
28#include <ql/currencies/europe.hpp>
29#include <ql/indexes/inflationindex.hpp>
30
31namespace QuantLib {
32
34 class FRHICP : public ZeroInflationIndex {
35 public:
38 "HICP", FranceRegion(), false, Monthly, Period(1, Months), EURCurrency(), ts) {}
39
43 QL_DEPRECATED
44 explicit FRHICP(
45 bool interpolated,
47 : FRHICP(ts) {
48 QL_DEPRECATED_DISABLE_WARNING
50 QL_DEPRECATED_ENABLE_WARNING
51 }
52 };
53
54
56 class YYFRHICP : public YoYInflationIndex {
57 public:
58 explicit YYFRHICP(
59 bool interpolated,
61 : YoYInflationIndex("YY_HICP",
63 false,
65 Monthly,
66 Period(1, Months),
68 ts) {}
69 };
70
71
72 QL_DEPRECATED_DISABLE_WARNING
73
75
78 class [[deprecated("Pass the FRHICP index to YoYInflationIndex instead")]] YYFRHICPr : public YoYInflationIndex {
79 public:
80 explicit YYFRHICPr(
81 bool interpolated,
83 : YoYInflationIndex("YYR_HICP",
85 false,
86 interpolated,
87 true,
88 Monthly,
89 Period(1, Months),
91 ts) {}
92 };
93
94 QL_DEPRECATED_ENABLE_WARNING
95}
96
97#endif
European Euro.
Definition: europe.hpp:123
FR HICP index.
Definition: frhicp.hpp:34
QL_DEPRECATED FRHICP(bool interpolated, const Handle< ZeroInflationTermStructure > &ts={})
Definition: frhicp.hpp:44
FRHICP(const Handle< ZeroInflationTermStructure > &ts={})
Definition: frhicp.hpp:36
France as geographical/economic region.
Definition: region.hpp:87
Shared handle to an observable.
Definition: handle.hpp:41
QL_DEPRECATED bool interpolated() const
QL_DEPRECATED bool interpolated_
Quoted year-on-year FR HICP (i.e. not a ratio)
Definition: frhicp.hpp:56
YYFRHICP(bool interpolated, const Handle< YoYInflationTermStructure > &ts={})
Definition: frhicp.hpp:58
Year-on-year FR HICP (i.e. a ratio)
Definition: frhicp.hpp:78
YYFRHICPr(bool interpolated, const Handle< YoYInflationTermStructure > &ts={})
Definition: frhicp.hpp:80
Base class for year-on-year inflation indices.
Base class for zero inflation indices.
@ Monthly
once a month
Definition: frequency.hpp:44
Definition: any.hpp:35