QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
frhicp.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) 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
21/*! \file frhicp.hpp
22 \brief French HICP inflation indexes
23*/
24
25#ifndef quantlib_frhicp_hpp
26#define quantlib_frhicp_hpp
27
30
31namespace QuantLib {
32
33 //! FR HICP index
34 class FRHICP : public ZeroInflationIndex {
35 public:
38 "HICP", FranceRegion(), false, Monthly, Period(1, Months), EURCurrency(), ts) {}
39 };
40
41
42 //! Quoted year-on-year FR HICP (i.e. not a ratio)
43 class YYFRHICP : public YoYInflationIndex {
44 public:
45 explicit YYFRHICP(
46 bool interpolated,
48 : YoYInflationIndex("YY_HICP",
50 false,
52 Monthly,
53 Period(1, Months),
55 ts) {}
56 };
57
58
60
61 //! Year-on-year FR HICP (i.e. a ratio)
62 /*! \deprecated Pass the FRHICP index to YoYInflationIndex instead.
63 Deprecated in version 1.31.
64 */
65 class [[deprecated("Pass the FRHICP index to YoYInflationIndex instead")]] YYFRHICPr : public YoYInflationIndex {
66 public:
67 explicit YYFRHICPr(
68 bool interpolated,
70 : YoYInflationIndex("YYR_HICP",
72 false,
73 interpolated,
74 true,
75 Monthly,
76 Period(1, Months),
78 ts) {}
79 };
80
82}
83
84#endif
European Euro.
Definition: europe.hpp:123
FR HICP index.
Definition: frhicp.hpp:34
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
Quoted year-on-year FR HICP (i.e. not a ratio)
Definition: frhicp.hpp:43
YYFRHICP(bool interpolated, const Handle< YoYInflationTermStructure > &ts={})
Definition: frhicp.hpp:45
Year-on-year FR HICP (i.e. a ratio)
Definition: frhicp.hpp:65
YYFRHICPr(bool interpolated, const Handle< YoYInflationTermStructure > &ts={})
Definition: frhicp.hpp:67
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:35
#define QL_DEPRECATED_DISABLE_WARNING
Definition: qldefines.hpp:216
#define QL_DEPRECATED_ENABLE_WARNING
Definition: qldefines.hpp:217