Logo
Reference manual - version ored_version
IRSwapConvention Class Reference

Container for storing Interest Rate Swap conventions. More...

#include <ored/configuration/conventions.hpp>

Inheritance diagram for IRSwapConvention:

Public Member Functions

Constructors
 IRSwapConvention ()
 Default constructor.
 IRSwapConvention (const string &id, const string &fixedCalendar, const string &fixedFrequency, const string &fixedConvention, const string &fixedDayCounter, const string &index, bool hasSubPeriod=false, const string &floatFrequency="", const string &subPeriodsCouponType="")
 Detailed constructor.
Inspectors
const Calendar & fixedCalendar () const
Frequency fixedFrequency () const
BusinessDayConvention fixedConvention () const
const DayCounter & fixedDayCounter () const
const stringindexName () const
QuantLib::ext::shared_ptr< IborIndex > index () const
bool hasSubPeriod () const
Frequency floatFrequency () const
SubPeriodsCoupon1::Type subPeriodsCouponType () const
Public Member Functions inherited from Convention
virtual ~Convention ()
 Default destructor.
const stringid () const
Type type () const
Public Member Functions inherited from XMLSerializable
void fromFile (const std::string &filename)
void toFile (const std::string &filename) const
void fromXMLString (const std::string &xml)
 Parse from XML string.
std::string toXMLString () const
 Parse from XML string.
std::string toXMLStringUnformatted () const

Serialisation

virtual void fromXML (XMLNode *node) override
virtual XMLNode * toXML (XMLDocument &doc) const override
virtual void build () override

Additional Inherited Members

Public Types inherited from Convention
enum class  Type {
  Zero , Deposit , Future , FRA ,
  OIS , Swap , AverageOIS , TenorBasisSwap ,
  TenorBasisTwoSwap , BMABasisSwap , FX , CrossCcyBasis ,
  CrossCcyFixFloat , CDS , IborIndex , OvernightIndex ,
  SwapIndex , ZeroInflationIndex , InflationSwap , SecuritySpread ,
  CMSSpreadOption , CommodityForward , CommodityFuture , FxOption ,
  FxOptionTimeWeighting , BondYield
}
 Supported convention types.
 Convention (const string &id, Type type)
Type type_
string id_

Detailed Description

Container for storing Interest Rate Swap conventions.

Member Function Documentation

◆ fromXML()

virtual void fromXML ( XMLNode * node)
overridevirtual

Implements XMLSerializable.

◆ toXML()

virtual XMLNode * toXML ( XMLDocument & doc) const
overridevirtual

Implements XMLSerializable.

◆ build()

virtual void build ( )
overridevirtual

Implements Convention.