Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CapFloorShiftQuote Class Reference

Shift data class (for SLN cap/floor volatilities) More...

#include <ored/marketdata/marketdatum.hpp>

+ Inheritance diagram for CapFloorShiftQuote:
+ Collaboration diagram for CapFloorShiftQuote:

Public Member Functions

 CapFloorShiftQuote ()
 
 CapFloorShiftQuote (Real value, const Date &asofDate, const string &name, QuoteType quoteType, const string &ccy, const Period &indexTenor, const string &indexName=string())
 
QuantLib::ext::shared_ptr< MarketDatumclone () override
 Make a copy of the market datum. More...
 
const string & ccy () const
 
const Period & indexTenor () const
 
const string & indexName () const
 
- Public Member Functions inherited from MarketDatum
 MarketDatum ()
 
 MarketDatum (Real value, Date asofDate, const string &name, QuoteType quoteType, InstrumentType instrumentType)
 Constructor. More...
 
virtual ~MarketDatum ()
 Default destructor. More...
 
virtual QuantLib::ext::shared_ptr< MarketDatumclone ()
 Make a copy of the market datum. More...
 
const string & name () const
 
const Handle< Quote > & quote () const
 
Date asofDate () const
 
InstrumentType instrumentType () const
 
QuoteType quoteType () const
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

string ccy_
 
Period indexTenor_
 
string indexName_
 

Friends

class boost::serialization::access
 Serialization. More...
 

Additional Inherited Members

- Public Types inherited from MarketDatum
enum class  InstrumentType {
  ZERO , DISCOUNT , MM , MM_FUTURE ,
  OI_FUTURE , FRA , IMM_FRA , IR_SWAP ,
  BASIS_SWAP , BMA_SWAP , CC_BASIS_SWAP , CC_FIX_FLOAT_SWAP ,
  CDS , CDS_INDEX , FX_SPOT , FX_FWD ,
  HAZARD_RATE , RECOVERY_RATE , SWAPTION , CAPFLOOR ,
  FX_OPTION , ZC_INFLATIONSWAP , ZC_INFLATIONCAPFLOOR , YY_INFLATIONSWAP ,
  YY_INFLATIONCAPFLOOR , SEASONALITY , EQUITY_SPOT , EQUITY_FWD ,
  EQUITY_DIVIDEND , EQUITY_OPTION , BOND , BOND_OPTION ,
  INDEX_CDS_OPTION , COMMODITY_SPOT , COMMODITY_FWD , CORRELATION ,
  COMMODITY_OPTION , CPR , RATING , NONE
}
 Supported market instrument types. More...
 
enum class  QuoteType {
  BASIS_SPREAD , CREDIT_SPREAD , CONV_CREDIT_SPREAD , YIELD_SPREAD ,
  HAZARD_RATE , RATE , RATIO , PRICE ,
  RATE_LNVOL , RATE_NVOL , RATE_SLNVOL , BASE_CORRELATION ,
  SHIFT , TRANSITION_PROBABILITY , NONE
}
 Supported market quote types. More...
 
- Protected Attributes inherited from MarketDatum
Handle< Quote > quote_
 
Date asofDate_
 
string name_
 
InstrumentType instrumentType_
 
QuoteType quoteType_
 

Detailed Description

Shift data class (for SLN cap/floor volatilities)

This class holds, for a given currency and index tenor, single market points of type

Definition at line 1061 of file marketdatum.hpp.

Constructor & Destructor Documentation

◆ CapFloorShiftQuote() [1/2]

Definition at line 1063 of file marketdatum.hpp.

1063{}

◆ CapFloorShiftQuote() [2/2]

CapFloorShiftQuote ( Real  value,
const Date &  asofDate,
const string &  name,
QuoteType  quoteType,
const string &  ccy,
const Period &  indexTenor,
const string &  indexName = string() 
)

Definition at line 1064 of file marketdatum.hpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ clone()

QuantLib::ext::shared_ptr< MarketDatum > clone ( )
overridevirtual

Make a copy of the market datum.

Reimplemented from MarketDatum.

Definition at line 1072 of file marketdatum.hpp.

1072 {
1073 return QuantLib::ext::make_shared<CapFloorShiftQuote>(quote_->value(), asofDate_, name_, quoteType_, ccy_, indexTenor_,
1074 indexName_);
1075 }
Handle< Quote > quote_

◆ ccy()

const string & ccy ( ) const

Definition at line 1077 of file marketdatum.hpp.

1077{ return ccy_; }

◆ indexTenor()

const Period & indexTenor ( ) const

Definition at line 1078 of file marketdatum.hpp.

1078{ return indexTenor_; }

◆ indexName()

const string & indexName ( ) const

Definition at line 1079 of file marketdatum.hpp.

1079{ return indexName_; }

◆ serialize()

template void serialize ( Archive &  ar,
const unsigned int  version 
)
private

Definition at line 495 of file marketdatum.cpp.

495 {
496 ar& boost::serialization::base_object<MarketDatum>(*this);
497 ar& ccy_;
498 ar& indexTenor_;
499 ar& indexName_;
500}

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization.

Definition at line 1086 of file marketdatum.hpp.

Member Data Documentation

◆ ccy_

string ccy_
private

Definition at line 1082 of file marketdatum.hpp.

◆ indexTenor_

Period indexTenor_
private

Definition at line 1083 of file marketdatum.hpp.

◆ indexName_

string indexName_
private

Definition at line 1084 of file marketdatum.hpp.