Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
yoycapfloor.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 ored/model/calibrationinstruments/yoycapfloor.hpp
20 \brief class for holding details of a year on year inflation cap floor calibration instrument.
21 \ingroup models
22*/
23
24#pragma once
25
29#include <ql/instruments/inflationcapfloor.hpp>
30
31namespace ore {
32namespace data {
33
34/*! Class for holding details of a year on year inflation cap floor calibration instrument.
35 \ingroup models
36*/
38public:
39 //! Default constructor
41
42 //! Detailed constructor
43 YoYCapFloor(QuantLib::YoYInflationCapFloor::Type type,
44 const QuantLib::Period& tenor,
45 const QuantLib::ext::shared_ptr<BaseStrike>& strike);
46
47 //! \name Inspectors
48 //@{
49 QuantLib::YoYInflationCapFloor::Type type() const;
50 const QuantLib::Period& tenor() const;
51 const QuantLib::ext::shared_ptr<BaseStrike>& strike() const;
52 //@}
53
54 //! \name Serialisation
55 //@{
56 void fromXML(XMLNode* node) override;
57 XMLNode* toXML(XMLDocument& doc) const override;
58 //@}
59
60private:
61 QuantLib::YoYInflationCapFloor::Type type_;
62 QuantLib::Period tenor_;
63 QuantLib::ext::shared_ptr<BaseStrike> strike_;
64};
65
66}
67}
class for holding details of the calibration instruments for a model
factory for making calibration instruments.
Small XML Document wrapper class.
Definition: xmlutils.hpp:65
QuantLib::YoYInflationCapFloor::Type type() const
Definition: yoycapfloor.cpp:40
QuantLib::YoYInflationCapFloor::Type type_
Definition: yoycapfloor.hpp:61
QuantLib::ext::shared_ptr< BaseStrike > strike_
Definition: yoycapfloor.hpp:63
YoYCapFloor()
Default constructor.
Definition: yoycapfloor.cpp:29
void fromXML(XMLNode *node) override
Definition: yoycapfloor.cpp:52
XMLNode * toXML(XMLDocument &doc) const override
Definition: yoycapfloor.cpp:59
const QuantLib::ext::shared_ptr< BaseStrike > & strike() const
Definition: yoycapfloor.cpp:48
YoYCapFloor(QuantLib::YoYInflationCapFloor::Type type, const QuantLib::Period &tenor, const QuantLib::ext::shared_ptr< BaseStrike > &strike)
Detailed constructor.
const QuantLib::Period & tenor() const
Definition: yoycapfloor.cpp:44
QuantLib::Period tenor_
Definition: yoycapfloor.hpp:62
@ data
Definition: log.hpp:77
Classes for representing a strike using various conventions.
Serializable Credit Default Swap.
Definition: namespaces.docs:23