QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
Loading...
Searching...
No Matches
euhicp.hpp
Go to the documentation of this file.
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2007, 2009 Chris Kenyon
5 Copyright (C) 2010 StatPro Italia srl
6 Copyright (C) 2021 Ralf Konrad Eckel
7
8 This file is part of QuantLib, a free-software/open-source library
9 for financial quantitative analysts and developers - http://quantlib.org/
10
11 QuantLib is free software: you can redistribute it and/or modify it
12 under the terms of the QuantLib license. You should have received a
13 copy of the license along with this program; if not, please email
14 <quantlib-dev@lists.sf.net>. The license is also available online at
15 <http://quantlib.org/license.shtml>.
16
17 This program is distributed in the hope that it will be useful, but WITHOUT
18 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19 FOR A PARTICULAR PURPOSE. See the license for more details.
20*/
21
22/*! \file euhicp.hpp
23 \brief EU HICP index
24*/
25
26#ifndef quantlib_euhicp_hpp
27#define quantlib_euhicp_hpp
28
31
32namespace QuantLib {
33
34 //! EU HICP index
35 class EUHICP : public ZeroInflationIndex {
36 public:
38 : ZeroInflationIndex("HICP",
39 EURegion(),
40 false,
41 Monthly,
42 Period(1, Months), // availability
44 ts) {}
45 };
46
47 //! EU HICPXT index
49 public:
51 : ZeroInflationIndex("HICPXT",
52 EURegion(),
53 false,
54 Monthly,
55 Period(1, Months), // availability
57 ts) {}
58 };
59
60
61 //! Quoted year-on-year EU HICP (i.e. not a ratio of EU HICP)
62 class YYEUHICP : public YoYInflationIndex {
63 public:
65 : YoYInflationIndex("YY_HICP",
66 EURegion(),
67 false,
68 Monthly,
69 Period(1, Months),
71 ts) {}
72
74
75 /*! \deprecated Use the overload without the interpolated parameter.
76 Deprecated in version 1.38.
77 */
78 [[deprecated("Use the overload without the interpolated parameter")]]
79 explicit YYEUHICP(
80 bool interpolated,
82 : YoYInflationIndex("YY_HICP",
83 EURegion(),
84 false,
86 Monthly,
87 Period(1, Months),
89 ts) {}
90
92 };
93
94 //! Quoted year-on-year EU HICPXT
96 public:
98 : YoYInflationIndex("YY_HICPXT",
99 EURegion(),
100 false,
101 Monthly,
102 Period(1, Months),
103 EURCurrency(),
104 ts) {}
105
107
108 /*! \deprecated Use the overload without the interpolated parameter.
109 Deprecated in version 1.38.
110 */
111 [[deprecated("Use the overload without the interpolated parameter")]]
112 explicit YYEUHICPXT(
113 bool interpolated,
115 : YoYInflationIndex("YY_HICPXT",
116 EURegion(),
117 false,
119 Monthly,
120 Period(1, Months),
121 EURCurrency(),
122 ts) {}
123
125 };
126
127}
128
129
130#endif
EU HICP index.
Definition: euhicp.hpp:35
EUHICP(const Handle< ZeroInflationTermStructure > &ts={})
Definition: euhicp.hpp:37
EU HICPXT index.
Definition: euhicp.hpp:48
EUHICPXT(const Handle< ZeroInflationTermStructure > &ts={})
Definition: euhicp.hpp:50
European Euro.
Definition: europe.hpp:123
European Union as geographical/economic region.
Definition: region.hpp:81
Shared handle to an observable.
Definition: handle.hpp:41
Quoted year-on-year EU HICP (i.e. not a ratio of EU HICP)
Definition: euhicp.hpp:62
QL_DEPRECATED_DISABLE_WARNING YYEUHICP(bool interpolated, const Handle< YoYInflationTermStructure > &ts={})
Definition: euhicp.hpp:79
YYEUHICP(const Handle< YoYInflationTermStructure > &ts={})
Definition: euhicp.hpp:64
Quoted year-on-year EU HICPXT.
Definition: euhicp.hpp:95
YYEUHICPXT(const Handle< YoYInflationTermStructure > &ts={})
Definition: euhicp.hpp:97
QL_DEPRECATED_DISABLE_WARNING YYEUHICPXT(bool interpolated, const Handle< YoYInflationTermStructure > &ts={})
Definition: euhicp.hpp:112
Base class for year-on-year inflation indices.
Base class for zero inflation indices.
European currencies.
@ Monthly
once a month
Definition: frequency.hpp:44
base classes for inflation indexes
Definition: any.hpp:37
#define QL_DEPRECATED_DISABLE_WARNING
Definition: qldefines.hpp:216
#define QL_DEPRECATED_ENABLE_WARNING
Definition: qldefines.hpp:217