QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
aucpi.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_aucpi_hpp
26#define quantlib_aucpi_hpp
27
28#include <ql/currencies/oceania.hpp>
29#include <ql/indexes/inflationindex.hpp>
30
31namespace QuantLib {
32
34 class AUCPI : public ZeroInflationIndex {
35 public:
37 bool revised,
40 "CPI", AustraliaRegion(), revised, frequency, Period(2, Months), AUDCurrency(), ts) {}
41
45 QL_DEPRECATED
47 bool revised,
48 bool interpolated,
50 : AUCPI(frequency, revised, ts) {
51 QL_DEPRECATED_DISABLE_WARNING
53 QL_DEPRECATED_ENABLE_WARNING
54 }
55 };
56
57
59 class YYAUCPI : public YoYInflationIndex {
60 public:
62 bool revised,
63 bool interpolated,
65 : YoYInflationIndex("YY_CPI",
67 revised,
70 Period(2, Months),
72 ts) {}
73 };
74
75
76 QL_DEPRECATED_DISABLE_WARNING
77
79
82 class [[deprecated("Pass the AUCPI index to YoYInflationIndex instead")]] YYAUCPIr : public YoYInflationIndex {
83 public:
85 bool revised,
86 bool interpolated,
88 : YoYInflationIndex("YYR_CPI",
90 revised,
91 interpolated,
92 true,
93 frequency,
94 Period(2, Months),
96 ts) {}
97 };
98
99 QL_DEPRECATED_ENABLE_WARNING
100}
101
102#endif
AU CPI index (either quarterly or annual)
Definition: aucpi.hpp:34
AUCPI(Frequency frequency, bool revised, const Handle< ZeroInflationTermStructure > &ts={})
Definition: aucpi.hpp:36
QL_DEPRECATED AUCPI(Frequency frequency, bool revised, bool interpolated, const Handle< ZeroInflationTermStructure > &ts={})
Definition: aucpi.hpp:46
Australian dollar.
Definition: oceania.hpp:45
Australia as geographical/economic region.
Definition: region.hpp:75
Shared handle to an observable.
Definition: handle.hpp:41
QL_DEPRECATED bool interpolated() const
Frequency frequency() const
QL_DEPRECATED bool interpolated_
Quoted year-on-year AU CPI (i.e. not a ratio)
Definition: aucpi.hpp:59
YYAUCPI(Frequency frequency, bool revised, bool interpolated, const Handle< YoYInflationTermStructure > &ts={})
Definition: aucpi.hpp:61
Year-on-year AUCPI (i.e. a ratio)
Definition: aucpi.hpp:82
YYAUCPIr(Frequency frequency, bool revised, bool interpolated, const Handle< YoYInflationTermStructure > &ts={})
Definition: aucpi.hpp:84
Base class for year-on-year inflation indices.
Base class for zero inflation indices.
Frequency
Frequency of events.
Definition: frequency.hpp:37
Definition: any.hpp:35