CMB coupon class.
More...
#include <qle/cashflows/cmbcoupon.hpp>
|
| CmbCoupon (const Date &paymentDate, Real nominal, const Date &startDate, const Date &endDate, Natural fixingDays, const ext::shared_ptr< ConstantMaturityBondIndex > &index, Real gearing=1.0, Spread spread=0.0, const Date &refPeriodStart=Date(), const Date &refPeriodEnd=Date(), const DayCounter &dayCounter=DayCounter(), bool isInArrears=false, const Date &exCouponDate=Date()) |
|
|
void | accept (AcyclicVisitor &) override |
|
CMB coupon class.
Definition at line 33 of file cmbcoupon.hpp.
◆ CmbCoupon()
CmbCoupon |
( |
const Date & |
paymentDate, |
|
|
Real |
nominal, |
|
|
const Date & |
startDate, |
|
|
const Date & |
endDate, |
|
|
Natural |
fixingDays, |
|
|
const ext::shared_ptr< ConstantMaturityBondIndex > & |
index, |
|
|
Real |
gearing = 1.0 , |
|
|
Spread |
spread = 0.0 , |
|
|
const Date & |
refPeriodStart = Date() , |
|
|
const Date & |
refPeriodEnd = Date() , |
|
|
const DayCounter & |
dayCounter = DayCounter() , |
|
|
bool |
isInArrears = false , |
|
|
const Date & |
exCouponDate = Date() |
|
) |
| |
Definition at line 26 of file cmbcoupon.cpp.
41 refPeriodStart, refPeriodEnd,
42 dayCounter, isInArrears, exCouponDate),
45}
const ext::shared_ptr< ConstantMaturityBondIndex > & bondIndex() const
ext::shared_ptr< ConstantMaturityBondIndex > bondIndex_
◆ accept()
void accept |
( |
AcyclicVisitor & |
v | ) |
|
|
override |
Definition at line 47 of file cmbcoupon.cpp.
47 {
48 auto* v1 = dynamic_cast<Visitor<CmbCoupon>*>(&v);
49 if (v1 != nullptr)
50 v1->visit(*this);
51 else
52 FloatingRateCoupon::accept(v);
53}
◆ bondIndex()
◆ setPricer()
Definition at line 88 of file cmbcoupon.cpp.
88 {
89 FloatingRateCoupon::setPricer(pricer);
90}
◆ bondIndex_