Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
frcpi.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2020 Quaternion Risk Management Ltd
3 All rights reserved.
4
5 This file is part of ORE, a free-software/open-source library
6 for transparent pricing and risk analysis - http://opensourcerisk.org
7
8 ORE is free software: you can redistribute it and/or modify it
9 under the terms of the Modified BSD License. You should have received a
10 copy of the license along with this program.
11 The license is also available online at <http://opensourcerisk.org>
12
13 This program is distributed on the basis that it will form a useful
14 contribution to risk analytics and model standardisation, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19/*! \file qle/indexes/frcpi.hpp
20 \brief French CPI inflation index
21*/
22
23#pragma once
24
25#include <ql/currencies/europe.hpp>
26#include <ql/indexes/inflationindex.hpp>
27
28namespace QuantExt {
29
30//! French CPI index
31class FRCPI : public QuantLib::ZeroInflationIndex {
32public:
33 FRCPI(const QuantLib::Handle<QuantLib::ZeroInflationTermStructure>& ts =
34 QuantLib::Handle<QuantLib::ZeroInflationTermStructure>())
35 : QuantLib::ZeroInflationIndex("CPI", QuantLib::FranceRegion(), false, QuantLib::Monthly,
36 QuantLib::Period(1, QuantLib::Months), QuantLib::EURCurrency(), ts) {}
37
38 QL_DEPRECATED_DISABLE_WARNING
39 QL_DEPRECATED FRCPI(bool interpolated, const QuantLib::Handle<QuantLib::ZeroInflationTermStructure>& ts =
40 QuantLib::Handle<QuantLib::ZeroInflationTermStructure>())
41 : QuantLib::ZeroInflationIndex("CPI", QuantLib::FranceRegion(), false, interpolated, QuantLib::Monthly,
42 QuantLib::Period(1, QuantLib::Months), QuantLib::EURCurrency(), ts) {}
43 QL_DEPRECATED_ENABLE_WARNING
44};
45
46} // namespace QuantExt
French CPI index.
Definition: frcpi.hpp:31
FRCPI(const QuantLib::Handle< QuantLib::ZeroInflationTermStructure > &ts=QuantLib::Handle< QuantLib::ZeroInflationTermStructure >())
Definition: frcpi.hpp:33
QL_DEPRECATED_DISABLE_WARNING QL_DEPRECATED FRCPI(bool interpolated, const QuantLib::Handle< QuantLib::ZeroInflationTermStructure > &ts=QuantLib::Handle< QuantLib::ZeroInflationTermStructure >())
Definition: frcpi.hpp:39