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

Discount market data class. More...

#include <ored/marketdata/marketdatum.hpp>

+ Inheritance diagram for DiscountQuote:
+ Collaboration diagram for DiscountQuote:

Public Member Functions

 DiscountQuote ()
 
 DiscountQuote (Real value, Date asofDate, const string &name, QuoteType quoteType, string ccy, Date date, Period tenor)
 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_
 
Date date_
 
Period tenor_
 
class boost::serialization::access
 Serialization. More...
 
const string & ccy () const
 
Date date () const
 
Period tenor () 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

Discount market data class.

This class holds single market points of type

Definition at line 409 of file marketdatum.hpp.

Constructor & Destructor Documentation

◆ DiscountQuote() [1/2]

Definition at line 411 of file marketdatum.hpp.

411{}

◆ DiscountQuote() [2/2]

DiscountQuote ( Real  value,
Date  asofDate,
const string &  name,
QuoteType  quoteType,
string  ccy,
Date  date,
Period  tenor 
)

Member Function Documentation

◆ clone()

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

Make a copy of the market datum.

Reimplemented from MarketDatum.

Definition at line 417 of file marketdatum.hpp.

417 {
418 return QuantLib::ext::make_shared<DiscountQuote>(quote_->value(), asofDate_, name_, quoteType_, ccy_, date_, tenor_);
419 }
Handle< Quote > quote_

◆ ccy()

const string & ccy ( ) const

Definition at line 422 of file marketdatum.hpp.

422{ return ccy_; }

◆ date()

Date date ( ) const

Definition at line 423 of file marketdatum.hpp.

423{ return date_; }

◆ tenor()

Period tenor ( ) const

Definition at line 424 of file marketdatum.hpp.

424{ return tenor_; }

◆ serialize()

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

Definition at line 371 of file marketdatum.cpp.

371 {
372 ar& boost::serialization::base_object<MarketDatum>(*this);
373 ar& ccy_;
374 ar& date_;
375 ar& tenor_;
376}

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization.

Definition at line 431 of file marketdatum.hpp.

Member Data Documentation

◆ ccy_

string ccy_
private

Definition at line 427 of file marketdatum.hpp.

◆ date_

Date date_
private

Definition at line 428 of file marketdatum.hpp.

◆ tenor_

Period tenor_
private

Definition at line 429 of file marketdatum.hpp.