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
InflationCapFloorQuote Class Reference

Inflation Cap Floor data class. More...

#include <ored/marketdata/marketdatum.hpp>

+ Inheritance diagram for InflationCapFloorQuote:
+ Collaboration diagram for InflationCapFloorQuote:

Public Member Functions

 InflationCapFloorQuote ()
 
 InflationCapFloorQuote (Real value, Date asofDate, const string &name, QuoteType quoteType, const string &index, Period term, bool isCap, const string &strike, InstrumentType instrumentType)
 
QuantLib::ext::shared_ptr< MarketDatumclone () override
 Make a copy of the market datum. More...
 
string index ()
 
Period term ()
 
bool isCap ()
 
string strike ()
 
- 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 index_
 
Period term_
 
bool isCap_
 
string strike_
 

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

Inflation Cap Floor data class.

This class holds single market points of type

Definition at line 1266 of file marketdatum.hpp.

Constructor & Destructor Documentation

◆ InflationCapFloorQuote() [1/2]

Definition at line 1268 of file marketdatum.hpp.

1268{}

◆ InflationCapFloorQuote() [2/2]

InflationCapFloorQuote ( Real  value,
Date  asofDate,
const string &  name,
QuoteType  quoteType,
const string &  index,
Period  term,
bool  isCap,
const string &  strike,
InstrumentType  instrumentType 
)

Member Function Documentation

◆ clone()

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

Make a copy of the market datum.

Reimplemented from MarketDatum.

Reimplemented in ZcInflationCapFloorQuote, and YyInflationCapFloorQuote.

Definition at line 1275 of file marketdatum.hpp.

1275 {
1276 return QuantLib::ext::make_shared<InflationCapFloorQuote>(quote_->value(), asofDate_, name_, quoteType_, index_, term_, isCap_, strike_, instrumentType_);
1277 }
InstrumentType instrumentType_
Handle< Quote > quote_

◆ index()

string index ( )

Definition at line 1279 of file marketdatum.hpp.

1279{ return index_; }
+ Here is the caller graph for this function:

◆ term()

Period term ( )

Definition at line 1280 of file marketdatum.hpp.

1280{ return term_; }
+ Here is the caller graph for this function:

◆ isCap()

bool isCap ( )

Definition at line 1281 of file marketdatum.hpp.

1281{ return isCap_; }
+ Here is the caller graph for this function:

◆ strike()

string strike ( )

Definition at line 1282 of file marketdatum.hpp.

1282{ return strike_; }
+ Here is the caller graph for this function:

◆ serialize()

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

Definition at line 530 of file marketdatum.cpp.

530 {
531 ar& boost::serialization::base_object<MarketDatum>(*this);
532 ar& index_;
533 ar& term_;
534 ar& isCap_;
535 ar& strike_;
536}

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization.

Definition at line 1290 of file marketdatum.hpp.

Member Data Documentation

◆ index_

string index_
private

Definition at line 1285 of file marketdatum.hpp.

◆ term_

Period term_
private

Definition at line 1286 of file marketdatum.hpp.

◆ isCap_

bool isCap_
private

Definition at line 1287 of file marketdatum.hpp.

◆ strike_

string strike_
private

Definition at line 1288 of file marketdatum.hpp.