Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
List of all members
YieldVolCurve Class Reference

Wrapper class for building Yield volatility structures. More...

#include <ored/marketdata/yieldvolcurve.hpp>

+ Inheritance diagram for YieldVolCurve:
+ Collaboration diagram for YieldVolCurve:

Public Member Functions

Constructors
 YieldVolCurve ()
 Default constructor. More...
 
 YieldVolCurve (Date asof, YieldVolatilityCurveSpec spec, const Loader &loader, const CurveConfigurations &curveConfigs, const bool buildCalibrationInfo)
 Detailed constructor. More...
 
- Public Member Functions inherited from GenericYieldVolCurve
 GenericYieldVolCurve ()
 Default constructor. More...
 
virtual ~GenericYieldVolCurve ()
 dtor More...
 
 GenericYieldVolCurve (const Date &asof, const Loader &loader, const CurveConfigurations &curveConfigs, const QuantLib::ext::shared_ptr< GenericYieldVolatilityCurveConfig > &config, const map< string, QuantLib::ext::shared_ptr< SwapIndex > > &requiredSwapIndices, const map< string, QuantLib::ext::shared_ptr< GenericYieldVolCurve > > &requiredVolCurves, const std::function< bool(const QuantLib::ext::shared_ptr< MarketDatum > &md, Period &expiry, Period &term)> &matchAtmQuote, const std::function< bool(const QuantLib::ext::shared_ptr< MarketDatum > &md, Period &expiry, Period &term, Real &strike)> &matchSmileQuote, const std::function< bool(const QuantLib::ext::shared_ptr< MarketDatum > &md, Period &term)> &matchShiftQuote, const bool buildCalibrationInfo)
 Detailed constructor. More...
 
const QuantLib::ext::shared_ptr< SwaptionVolatilityStructure > & volTermStructure ()
 
QuantLib::ext::shared_ptr< IrVolCalibrationInfocalibrationInfo () const
 

Inspectors

YieldVolatilityCurveSpec spec_
 
const YieldVolatilityCurveSpecspec () const
 

Detailed Description

Wrapper class for building Yield volatility structures.

Definition at line 38 of file yieldvolcurve.hpp.

Constructor & Destructor Documentation

◆ YieldVolCurve() [1/2]

Default constructor.

Definition at line 43 of file yieldvolcurve.hpp.

43{}

◆ YieldVolCurve() [2/2]

YieldVolCurve ( Date  asof,
YieldVolatilityCurveSpec  spec,
const Loader loader,
const CurveConfigurations curveConfigs,
const bool  buildCalibrationInfo 
)

Detailed constructor.

Definition at line 28 of file yieldvolcurve.cpp.

31 asof, loader, curveConfigs, curveConfigs.yieldVolCurveConfig(spec.curveConfigID()), {}, {},
32 [](const QuantLib::ext::shared_ptr<MarketDatum>& md, Period& expiry, Period& term) -> bool {
33 QuantLib::ext::shared_ptr<BondOptionQuote> q = QuantLib::ext::dynamic_pointer_cast<BondOptionQuote>(md);
34 if (q == nullptr)
35 return false;
36 expiry = q->expiry();
37 term = q->term();
38 return q->instrumentType() == MarketDatum::InstrumentType::BOND_OPTION;
39 },
40 [](const QuantLib::ext::shared_ptr<MarketDatum>& md, Period& expiry, Period& term, Real& strike) {
41 QuantLib::ext::shared_ptr<SwaptionQuote> q = QuantLib::ext::dynamic_pointer_cast<SwaptionQuote>(md);
42 return false;
43 },
44 [](const QuantLib::ext::shared_ptr<MarketDatum>& md, Period& term) {
45 QuantLib::ext::shared_ptr<SwaptionShiftQuote> q = QuantLib::ext::dynamic_pointer_cast<SwaptionShiftQuote>(md);
46 if (q == nullptr)
47 return false;
48 term = q->term();
49 return true;
50 },
51 buildCalibrationInfo),
52 spec_(spec) {}
const std::string & curveConfigID() const
Definition: curvespec.hpp:83
GenericYieldVolCurve()
Default constructor.
YieldVolatilityCurveSpec spec_
const YieldVolatilityCurveSpec & spec() const
vector< string > curveConfigs

Member Function Documentation

◆ spec()

const YieldVolatilityCurveSpec & spec ( ) const

Definition at line 51 of file yieldvolcurve.hpp.

51{ return spec_; }

Member Data Documentation

◆ spec_

YieldVolatilityCurveSpec spec_
private

Definition at line 55 of file yieldvolcurve.hpp.