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

Cap/Floor data class. More...

#include <ored/marketdata/marketdatum.hpp>

+ Inheritance diagram for CapFloorQuote:
+ Collaboration diagram for CapFloorQuote:

Public Member Functions

 CapFloorQuote ()
 
 CapFloorQuote (Real value, Date asofDate, const string &name, QuoteType quoteType, string ccy, Period term, Period underlying, bool atm, bool relative, Real strike=0.0, const string &indexName=string(), bool isCap=true)
 Constructor. More...
 
QuantLib::ext::shared_ptr< MarketDatumclone () override
 Make a copy of the market datum. More...
 
- 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
 

Inspectors

string ccy_
 
Period term_
 
Period underlying_
 
bool atm_
 
bool relative_
 
Real strike_
 
string indexName_
 
bool isCap_
 
class boost::serialization::access
 Serialization. More...
 
const string & ccy () const
 
const Period & term () const
 
const Period & underlying () const
 
bool atm () const
 
bool relative () const
 
Real strike ()
 
const string & indexName () const
 
bool isCap () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

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

Cap/Floor data class.

This class holds single market points of type

Definition at line 1016 of file marketdatum.hpp.

Constructor & Destructor Documentation

◆ CapFloorQuote() [1/2]

Definition at line 1018 of file marketdatum.hpp.

1018{}

◆ CapFloorQuote() [2/2]

CapFloorQuote ( Real  value,
Date  asofDate,
const string &  name,
QuoteType  quoteType,
string  ccy,
Period  term,
Period  underlying,
bool  atm,
bool  relative,
Real  strike = 0.0,
const string &  indexName = string(),
bool  isCap = true 
)

Constructor.

Definition at line 1020 of file marketdatum.hpp.

const Period & term() const
const string & ccy() const
const Period & underlying() const
const string & indexName() const
const string & name() const
QuoteType quoteType() const
SafeStack< ValueType > value

Member Function Documentation

◆ clone()

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

Make a copy of the market datum.

Reimplemented from MarketDatum.

Definition at line 1026 of file marketdatum.hpp.

1026 {
1027 return QuantLib::ext::make_shared<CapFloorQuote>(quote_->value(), asofDate_, name_, quoteType_, ccy_, term_,
1029 }
Handle< Quote > quote_

◆ ccy()

const string & ccy ( ) const

Definition at line 1033 of file marketdatum.hpp.

1033{ return ccy_; }

◆ term()

const Period & term ( ) const

Definition at line 1034 of file marketdatum.hpp.

1034{ return term_; }

◆ underlying()

const Period & underlying ( ) const

Definition at line 1035 of file marketdatum.hpp.

1035{ return underlying_; }

◆ atm()

bool atm ( ) const

Definition at line 1036 of file marketdatum.hpp.

1036{ return atm_; }

◆ relative()

bool relative ( ) const

Definition at line 1037 of file marketdatum.hpp.

1037{ return relative_; }

◆ strike()

Real strike ( )

Definition at line 1038 of file marketdatum.hpp.

1038{ return strike_; }

◆ indexName()

const string & indexName ( ) const

Definition at line 1039 of file marketdatum.hpp.

1039{ return indexName_; }

◆ isCap()

bool isCap ( ) const

Definition at line 1040 of file marketdatum.hpp.

1040{ return isCap_; }

◆ serialize()

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

Definition at line 483 of file marketdatum.cpp.

483 {
484 ar& boost::serialization::base_object<MarketDatum>(*this);
485 ar& ccy_;
486 ar& term_;
487 ar& underlying_;
488 ar& atm_;
489 ar& relative_;
490 ar& strike_;
491 ar& indexName_;
492 ar& isCap_;
493}

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization.

Definition at line 1052 of file marketdatum.hpp.

Member Data Documentation

◆ ccy_

string ccy_
private

Definition at line 1043 of file marketdatum.hpp.

◆ term_

Period term_
private

Definition at line 1044 of file marketdatum.hpp.

◆ underlying_

Period underlying_
private

Definition at line 1045 of file marketdatum.hpp.

◆ atm_

bool atm_
private

Definition at line 1046 of file marketdatum.hpp.

◆ relative_

bool relative_
private

Definition at line 1047 of file marketdatum.hpp.

◆ strike_

Real strike_
private

Definition at line 1048 of file marketdatum.hpp.

◆ indexName_

string indexName_
private

Definition at line 1049 of file marketdatum.hpp.

◆ isCap_

bool isCap_
private

Definition at line 1050 of file marketdatum.hpp.