QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
Loading...
Searching...
No Matches
zacpi.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) 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 zacpi.hpp
22 \brief %ZACPI index
23*/
24
25#ifndef quantlib_zacpi_hpp
26#define quantlib_zacpi_hpp
27
30
31namespace QuantLib {
32
33 //! South African Consumer Price Inflation Index
34 class ZACPI : public ZeroInflationIndex {
35 public:
38 "CPI", ZARegion(), false, Monthly, Period(1, Months), ZARCurrency(), ts) {}
39 };
40
41
42 //! Quoted year-on-year South African CPI (i.e. not a ratio of ZA CPI)
43 class YYZACPI : public YoYInflationIndex {
44 public:
45 explicit YYZACPI(
47 : YoYInflationIndex("YY_CPI",
48 ZARegion(),
49 false,
50 Monthly,
51 Period(1, Months),
53 ts) {}
54
56
57 /*! \deprecated Use the overload without the interpolated parameter.
58 Deprecated in version 1.38.
59 */
60 [[deprecated("Use the overload without the interpolated parameter")]]
61 explicit YYZACPI(
62 bool interpolated,
64 : YoYInflationIndex("YY_CPI",
65 ZARegion(),
66 false,
68 Monthly,
69 Period(1, Months),
71 ts) {}
72
74 };
75
76}
77
78
79#endif
African currencies.
Shared handle to an observable.
Definition: handle.hpp:41
Quoted year-on-year South African CPI (i.e. not a ratio of ZA CPI)
Definition: zacpi.hpp:43
QL_DEPRECATED_DISABLE_WARNING YYZACPI(bool interpolated, const Handle< YoYInflationTermStructure > &ts={})
Definition: zacpi.hpp:61
YYZACPI(const Handle< YoYInflationTermStructure > &ts={})
Definition: zacpi.hpp:45
Base class for year-on-year inflation indices.
South African Consumer Price Inflation Index.
Definition: zacpi.hpp:34
ZACPI(const Handle< ZeroInflationTermStructure > &ts={})
Definition: zacpi.hpp:36
South-African rand.
Definition: africa.hpp:166
South Africa as geographical/economic region.
Definition: region.hpp:105
Base class for zero inflation indices.
@ 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