Container class for all Curve Configurations. More...
#include <ored/configuration/curveconfigurations.hpp>
Public Member Functions | |
CurveConfigurations () | |
Default constructor. More... | |
Setters and Getters | |
const ReportConfig & | reportConfigEqVols () const |
const ReportConfig & | reportConfigFxVols () const |
const ReportConfig & | reportConfigCommVols () const |
const ReportConfig & | reportConfigIrCapFloorVols () const |
const ReportConfig & | reportConfigIrSwaptionVols () const |
bool | hasYieldCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< YieldCurveConfig > | yieldCurveConfig (const string &curveID) const |
bool | hasFxVolCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< FXVolatilityCurveConfig > | fxVolCurveConfig (const string &curveID) const |
bool | hasSwaptionVolCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< SwaptionVolatilityCurveConfig > | swaptionVolCurveConfig (const string &curveID) const |
bool | hasYieldVolCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< YieldVolatilityCurveConfig > | yieldVolCurveConfig (const string &curveID) const |
bool | hasCapFloorVolCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< CapFloorVolatilityCurveConfig > | capFloorVolCurveConfig (const string &curveID) const |
bool | hasDefaultCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< DefaultCurveConfig > | defaultCurveConfig (const string &curveID) const |
bool | hasCdsVolCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< CDSVolatilityCurveConfig > | cdsVolCurveConfig (const string &curveID) const |
bool | hasBaseCorrelationCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< BaseCorrelationCurveConfig > | baseCorrelationCurveConfig (const string &curveID) const |
bool | hasInflationCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< InflationCurveConfig > | inflationCurveConfig (const string &curveID) const |
bool | hasInflationCapFloorVolCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< InflationCapFloorVolatilityCurveConfig > | inflationCapFloorVolCurveConfig (const string &curveID) const |
bool | hasEquityCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< EquityCurveConfig > | equityCurveConfig (const string &curveID) const |
bool | hasEquityVolCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< EquityVolatilityCurveConfig > | equityVolCurveConfig (const string &curveID) const |
bool | hasSecurityConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< SecurityConfig > | securityConfig (const string &curveID) const |
bool | hasFxSpotConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< FXSpotConfig > | fxSpotConfig (const string &curveID) const |
bool | hasCommodityCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< CommodityCurveConfig > | commodityCurveConfig (const std::string &curveID) const |
bool | hasCommodityVolatilityConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< CommodityVolatilityConfig > | commodityVolatilityConfig (const std::string &curveID) const |
bool | hasCorrelationCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< CorrelationCurveConfig > | correlationCurveConfig (const std::string &curveID) const |
QuantLib::ext::shared_ptr< CurveConfigurations > | minimalCurveConfig (const QuantLib::ext::shared_ptr< TodaysMarketParameters > todaysMarketParams, const std::set< std::string > &configurations={""}) const |
std::set< string > | quotes (const QuantLib::ext::shared_ptr< TodaysMarketParameters > todaysMarketParams, const std::set< std::string > &configurations={""}) const |
std::set< string > | quotes () const |
std::set< string > | conventions (const QuantLib::ext::shared_ptr< TodaysMarketParameters > todaysMarketParams, const std::set< std::string > &configurations={""}) const |
std::set< string > | conventions () const |
std::set< string > | yieldCurveConfigIds () |
std::map< CurveSpec::CurveType, std::set< string > > | requiredCurveIds (const CurveSpec::CurveType &type, const std::string &curveId) const |
void | add (const CurveSpec::CurveType &type, const string &curveId, const QuantLib::ext::shared_ptr< CurveConfig > &config) |
bool | has (const CurveSpec::CurveType &type, const string &curveId) const |
const QuantLib::ext::shared_ptr< CurveConfig > & | get (const CurveSpec::CurveType &type, const string &curveId) const |
void | parseAll () |
void | addAdditionalCurveConfigs (const CurveConfigurations &c) |
Public Member Functions inherited from XMLSerializable | |
virtual | ~XMLSerializable () |
virtual void | fromXML (XMLNode *node)=0 |
virtual XMLNode * | toXML (XMLDocument &doc) const =0 |
void | fromFile (const std::string &filename) |
void | toFile (const std::string &filename) const |
void | fromXMLString (const std::string &xml) |
Parse from XML string. More... | |
std::string | toXMLString () const |
Parse from XML string. More... | |
Serialisation | |
ReportConfig | reportConfigEqVols_ |
ReportConfig | reportConfigFxVols_ |
ReportConfig | reportConfigCommVols_ |
ReportConfig | reportConfigIrCapFloorVols_ |
ReportConfig | reportConfigIrSwaptionVols_ |
std::map< CurveSpec::CurveType, std::map< std::string, QuantLib::ext::shared_ptr< CurveConfig > > > | configs_ |
std::map< CurveSpec::CurveType, std::map< std::string, std::string > > | unparsed_ |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (XMLDocument &doc) const override |
void | parseNode (const CurveSpec::CurveType &type, const string &curveId) const |
void | getNode (XMLNode *node, const char *parentName, const char *childName) |
void | addNodes (XMLDocument &doc, XMLNode *parent, const char *nodeName) const |
Container class for all Curve Configurations.
Definition at line 59 of file curveconfigurations.hpp.
const ReportConfig & reportConfigEqVols | ( | ) | const |
Definition at line 66 of file curveconfigurations.hpp.
const ReportConfig & reportConfigFxVols | ( | ) | const |
Definition at line 67 of file curveconfigurations.hpp.
const ReportConfig & reportConfigCommVols | ( | ) | const |
Definition at line 68 of file curveconfigurations.hpp.
const ReportConfig & reportConfigIrCapFloorVols | ( | ) | const |
Definition at line 69 of file curveconfigurations.hpp.
const ReportConfig & reportConfigIrSwaptionVols | ( | ) | const |
Definition at line 70 of file curveconfigurations.hpp.
bool hasYieldCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 363 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< YieldCurveConfig > yieldCurveConfig | ( | const string & | curveID | ) | const |
Definition at line 364 of file curveconfigurations.cpp.
bool hasFxVolCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 369 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< FXVolatilityCurveConfig > fxVolCurveConfig | ( | const string & | curveID | ) | const |
Definition at line 373 of file curveconfigurations.cpp.
bool hasSwaptionVolCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 378 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< SwaptionVolatilityCurveConfig > swaptionVolCurveConfig | ( | const string & | curveID | ) | const |
Definition at line 383 of file curveconfigurations.cpp.
bool hasYieldVolCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 388 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< YieldVolatilityCurveConfig > yieldVolCurveConfig | ( | const string & | curveID | ) | const |
Definition at line 393 of file curveconfigurations.cpp.
bool hasCapFloorVolCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 398 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< CapFloorVolatilityCurveConfig > capFloorVolCurveConfig | ( | const string & | curveID | ) | const |
Definition at line 403 of file curveconfigurations.cpp.
bool hasDefaultCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 408 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< DefaultCurveConfig > defaultCurveConfig | ( | const string & | curveID | ) | const |
Definition at line 412 of file curveconfigurations.cpp.
bool hasCdsVolCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 417 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< CDSVolatilityCurveConfig > cdsVolCurveConfig | ( | const string & | curveID | ) | const |
Definition at line 421 of file curveconfigurations.cpp.
bool hasBaseCorrelationCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 426 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< BaseCorrelationCurveConfig > baseCorrelationCurveConfig | ( | const string & | curveID | ) | const |
Definition at line 431 of file curveconfigurations.cpp.
bool hasInflationCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 436 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< InflationCurveConfig > inflationCurveConfig | ( | const string & | curveID | ) | const |
Definition at line 440 of file curveconfigurations.cpp.
bool hasInflationCapFloorVolCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 445 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< InflationCapFloorVolatilityCurveConfig > inflationCapFloorVolCurveConfig | ( | const string & | curveID | ) | const |
Definition at line 450 of file curveconfigurations.cpp.
bool hasEquityCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 455 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< EquityCurveConfig > equityCurveConfig | ( | const string & | curveID | ) | const |
Definition at line 459 of file curveconfigurations.cpp.
bool hasEquityVolCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 464 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< EquityVolatilityCurveConfig > equityVolCurveConfig | ( | const string & | curveID | ) | const |
Definition at line 469 of file curveconfigurations.cpp.
bool hasSecurityConfig | ( | const std::string & | curveID | ) | const |
Definition at line 474 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< SecurityConfig > securityConfig | ( | const string & | curveID | ) | const |
Definition at line 478 of file curveconfigurations.cpp.
bool hasFxSpotConfig | ( | const std::string & | curveID | ) | const |
Definition at line 483 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< FXSpotConfig > fxSpotConfig | ( | const string & | curveID | ) | const |
Definition at line 487 of file curveconfigurations.cpp.
bool hasCommodityCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 492 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< CommodityCurveConfig > commodityCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 496 of file curveconfigurations.cpp.
bool hasCommodityVolatilityConfig | ( | const std::string & | curveID | ) | const |
Definition at line 501 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< CommodityVolatilityConfig > commodityVolatilityConfig | ( | const std::string & | curveID | ) | const |
Definition at line 506 of file curveconfigurations.cpp.
bool hasCorrelationCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 511 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< CorrelationCurveConfig > correlationCurveConfig | ( | const std::string & | curveID | ) | const |
Definition at line 516 of file curveconfigurations.cpp.
QuantLib::ext::shared_ptr< CurveConfigurations > minimalCurveConfig | ( | const QuantLib::ext::shared_ptr< TodaysMarketParameters > | todaysMarketParams, |
const std::set< std::string > & | configurations = {""} |
||
) | const |
Definition at line 193 of file curveconfigurations.cpp.
std::set< string > quotes | ( | const QuantLib::ext::shared_ptr< TodaysMarketParameters > | todaysMarketParams, |
const std::set< std::string > & | configurations = {""} |
||
) | const |
Return the set of quotes that are required by the CurveConfig elements in CurveConfigurations.
The set of quotes required by only those CurveConfig elements appearing in todaysMarketParams
for the given configuration(s) is returned.
Definition at line 222 of file curveconfigurations.cpp.
std::set< string > quotes | ( | ) | const |
Definition at line 247 of file curveconfigurations.cpp.
std::set< string > conventions | ( | const QuantLib::ext::shared_ptr< TodaysMarketParameters > | todaysMarketParams, |
const std::set< std::string > & | configurations = {""} |
||
) | const |
Definition at line 259 of file curveconfigurations.cpp.
std::set< string > conventions | ( | ) | const |
Definition at line 273 of file curveconfigurations.cpp.
set< string > yieldCurveConfigIds | ( | ) |
Return the Yields curves available
Definition at line 332 of file curveconfigurations.cpp.
std::map< CurveSpec::CurveType, std::set< string > > requiredCurveIds | ( | const CurveSpec::CurveType & | type, |
const std::string & | curveId | ||
) | const |
Return all curve ids required by a given curve id of a given type
Definition at line 350 of file curveconfigurations.cpp.
void add | ( | const CurveSpec::CurveType & | type, |
const string & | curveId, | ||
const QuantLib::ext::shared_ptr< CurveConfig > & | config | ||
) |
Definition at line 148 of file curveconfigurations.cpp.
bool has | ( | const CurveSpec::CurveType & | type, |
const string & | curveId | ||
) | const |
const QuantLib::ext::shared_ptr< CurveConfig > & get | ( | const CurveSpec::CurveType & | type, |
const string & | curveId | ||
) | const |
Definition at line 158 of file curveconfigurations.cpp.
void parseAll | ( | ) |
Definition at line 171 of file curveconfigurations.cpp.
void addAdditionalCurveConfigs | ( | const CurveConfigurations & | c | ) |
add curve configs from given container that are not present in this container
Definition at line 593 of file curveconfigurations.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 522 of file curveconfigurations.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 569 of file curveconfigurations.cpp.
|
private |
Definition at line 57 of file curveconfigurations.cpp.
|
private |
Definition at line 180 of file curveconfigurations.cpp.
|
private |
Definition at line 44 of file curveconfigurations.cpp.
|
private |
Definition at line 164 of file curveconfigurations.hpp.
|
private |
Definition at line 165 of file curveconfigurations.hpp.
|
private |
Definition at line 166 of file curveconfigurations.hpp.
|
private |
Definition at line 167 of file curveconfigurations.hpp.
|
private |
Definition at line 168 of file curveconfigurations.hpp.
|
mutableprivate |
Definition at line 170 of file curveconfigurations.hpp.
|
mutableprivate |
Definition at line 171 of file curveconfigurations.hpp.