Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
genericyieldvolcurve.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2016 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/marketdata/swaptionvolcurve.hpp
20 \brief Wrapper class for building Generic yield volatility structures
21 \ingroup curves
22*/
23
24#pragma once
25
32#include <ql/termstructures/volatility/swaption/swaptionvolstructure.hpp>
33
34namespace ore {
35namespace data {
36using QuantLib::Date;
37using QuantLib::SwaptionVolatilityStructure;
38
39//! Wrapper class for building Generic yield volatility structures
40/*!
41 \ingroup curves
42*/
44public:
45 //! \name Constructors
46 //@{
47 //! Default constructor
49 //! dtor
51 //! Detailed constructor
53 const Date& asof, const Loader& loader, const CurveConfigurations& curveConfigs,
54 const QuantLib::ext::shared_ptr<GenericYieldVolatilityCurveConfig>& config,
55 const map<string, QuantLib::ext::shared_ptr<SwapIndex>>& requiredSwapIndices,
56 const map<string, QuantLib::ext::shared_ptr<GenericYieldVolCurve>>& requiredVolCurves,
57 const std::function<bool(const QuantLib::ext::shared_ptr<MarketDatum>& md, Period& expiry, Period& term)>&
58 matchAtmQuote,
59 const std::function<bool(const QuantLib::ext::shared_ptr<MarketDatum>& md, Period& expiry, Period& term, Real& strike)>&
60 matchSmileQuote,
61 const std::function<bool(const QuantLib::ext::shared_ptr<MarketDatum>& md, Period& term)>& matchShiftQuote,
62 const bool buildCalibrationInfo);
63 //@}
64
65 //! \name Inspectors
66 //@{
67 const QuantLib::ext::shared_ptr<SwaptionVolatilityStructure>& volTermStructure() { return vol_; }
68 QuantLib::ext::shared_ptr<IrVolCalibrationInfo> calibrationInfo() const { return calibrationInfo_; }
69 //@}
70
71private:
72 QuantLib::ext::shared_ptr<SwaptionVolatilityStructure> vol_;
73 QuantLib::ext::shared_ptr<IrVolCalibrationInfo> calibrationInfo_;
74};
75} // namespace data
76} // namespace ore
Container class for all Curve Configurations.
Wrapper class for building Generic yield volatility structures.
QuantLib::ext::shared_ptr< IrVolCalibrationInfo > calibrationInfo_
QuantLib::ext::shared_ptr< IrVolCalibrationInfo > calibrationInfo() const
QuantLib::ext::shared_ptr< SwaptionVolatilityStructure > vol_
GenericYieldVolCurve()
Default constructor.
const QuantLib::ext::shared_ptr< SwaptionVolatilityStructure > & volTermStructure()
Market data loader base class.
Definition: loader.hpp:47
Currency and instrument specific conventions/defaults.
Curve configuration repository.
Curve requirements specification.
Swaption volatility curve configuration classes.
Market Datum Loader Interface.
@ data
Definition: log.hpp:77
Serializable Credit Default Swap.
Definition: namespaces.docs:23
vector< string > curveConfigs
a container holding information on calibration results during the t0 market build