formula based coupon class
More...
#include <qle/cashflows/formulabasedcoupon.hpp>
|
| FormulaBasedCoupon (const Currency &paymentCurrency, const Date &paymentDate, Real nominal, const Date &startDate, const Date &endDate, Natural fixingDays, const QuantLib::ext::shared_ptr< FormulaBasedIndex > &index, const Date &refPeriodStart=Date(), const Date &refPeriodEnd=Date(), const DayCounter &dayCounter=DayCounter(), bool isInArrears=false) |
|
|
const Currency & | paymentCurrency () const |
|
const QuantLib::ext::shared_ptr< FormulaBasedIndex > & | formulaBasedIndex () const |
|
formula based coupon class
Definition at line 39 of file formulabasedcoupon.hpp.
◆ FormulaBasedCoupon()
FormulaBasedCoupon |
( |
const Currency & |
paymentCurrency, |
|
|
const Date & |
paymentDate, |
|
|
Real |
nominal, |
|
|
const Date & |
startDate, |
|
|
const Date & |
endDate, |
|
|
Natural |
fixingDays, |
|
|
const QuantLib::ext::shared_ptr< FormulaBasedIndex > & |
index, |
|
|
const Date & |
refPeriodStart = Date() , |
|
|
const Date & |
refPeriodEnd = Date() , |
|
|
const DayCounter & |
dayCounter = DayCounter() , |
|
|
bool |
isInArrears = false |
|
) |
| |
Definition at line 27 of file formulabasedcoupon.cpp.
31 :
FloatingRateCoupon(paymentDate, nominal, startDate, endDate, fixingDays, index, 1.0, 0.0, refPeriodStart,
32 refPeriodEnd, dayCounter, isInArrears),
◆ paymentCurrency()
const Currency & paymentCurrency |
( |
| ) |
const |
◆ formulaBasedIndex()
◆ accept()
void accept |
( |
AcyclicVisitor & |
v | ) |
|
|
overridevirtual |
Definition at line 35 of file formulabasedcoupon.cpp.
35 {
36 Visitor<FormulaBasedCoupon>* v1 = dynamic_cast<Visitor<FormulaBasedCoupon>*>(&v);
37 if (v1 != 0)
38 v1->visit(*this);
39 else
40 FloatingRateCoupon::accept(v);
41}
◆ paymentCurrency_
const Currency paymentCurrency_ |
|
private |
◆ index_