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

base pricer for formula based coupons More...

#include <qle/cashflows/formulabasedcoupon.hpp>

+ Inheritance diagram for FormulaBasedCouponPricer:
+ Collaboration diagram for FormulaBasedCouponPricer:

Public Member Functions

 FormulaBasedCouponPricer (const std::string &paymentCurrencyCode, const std::map< std::string, Handle< BlackVolTermStructure > > &fxVolatilities, const std::map< std::pair< std::string, std::string >, Handle< QuantExt::CorrelationTermStructure > > &correlation)
 

Protected Attributes

const std::string paymentCurrencyCode_
 
const std::map< std::string, Handle< BlackVolTermStructure > > fxVolatilities_
 
std::map< std::pair< std::string, std::string >, Handle< QuantExt::CorrelationTermStructure > > correlation_
 

Detailed Description

base pricer for formula based coupons

Definition at line 90 of file formulabasedcoupon.hpp.

Constructor & Destructor Documentation

◆ FormulaBasedCouponPricer()

FormulaBasedCouponPricer ( const std::string &  paymentCurrencyCode,
const std::map< std::string, Handle< BlackVolTermStructure > > &  fxVolatilities,
const std::map< std::pair< std::string, std::string >, Handle< QuantExt::CorrelationTermStructure > > &  correlation 
)

Definition at line 95 of file formulabasedcoupon.hpp.

99 : paymentCurrencyCode_(paymentCurrencyCode), fxVolatilities_(fxVolatilities), correlation_(correlation) {
100 for (auto const& v : fxVolatilities)
101 registerWith(v.second);
102 for (auto const& c : correlation)
103 registerWith(c.second);
104 }
const std::map< std::string, Handle< BlackVolTermStructure > > fxVolatilities_
std::map< std::pair< std::string, std::string >, Handle< QuantExt::CorrelationTermStructure > > correlation_

Member Data Documentation

◆ paymentCurrencyCode_

const std::string paymentCurrencyCode_
protected

Definition at line 107 of file formulabasedcoupon.hpp.

◆ fxVolatilities_

const std::map<std::string, Handle<BlackVolTermStructure> > fxVolatilities_
protected

Definition at line 108 of file formulabasedcoupon.hpp.

◆ correlation_

std::map<std::pair<std::string, std::string>, Handle<QuantExt::CorrelationTermStructure> > correlation_
protected

Definition at line 109 of file formulabasedcoupon.hpp.