indexed coupon
More...
#include <qle/cashflows/indexedcoupon.hpp>
indexed coupon
Definition at line 38 of file indexedcoupon.hpp.
◆ IndexedCoupon() [1/2]
IndexedCoupon |
( |
const QuantLib::ext::shared_ptr< Coupon > & |
c, |
|
|
const Real |
qty, |
|
|
const QuantLib::ext::shared_ptr< Index > & |
index, |
|
|
const Date & |
fixingDate |
|
) |
| |
pays c->amount() * qty * index(fixingDate)
Definition at line 26 of file indexedcoupon.cpp.
28 :
Coupon(c->date(), 0.0, c->accrualStartDate(), c->accrualEndDate(), c->referencePeriodStart(),
29 c->referencePeriodEnd(), c->exCouponDate()),
31 QL_REQUIRE(
index,
"IndexedCoupon: index is null");
32 QL_REQUIRE(
fixingDate != Date(),
"IndexedCoupon: fixingDate is null");
33 registerWith(c);
35}
QuantLib::ext::shared_ptr< Index > index() const
QuantLib::ext::shared_ptr< Index > index_
QuantLib::ext::shared_ptr< Coupon > c_
const Date & fixingDate() const
◆ IndexedCoupon() [2/2]
IndexedCoupon |
( |
const QuantLib::ext::shared_ptr< Coupon > & |
c, |
|
|
const Real |
qty, |
|
|
const Real |
initialFixing |
|
) |
| |
pays c->amount() * qty * initialFixing
Definition at line 37 of file indexedcoupon.cpp.
38 :
Coupon(c->date(), c->nominal(), c->accrualStartDate(), c->accrualEndDate(), c->referencePeriodStart(),
39 c->referencePeriodEnd(), c->exCouponDate()),
41 QL_REQUIRE(
initialFixing != Null<Real>(),
"IndexedCoupon: initial fixing is null");
42 registerWith(c);
43}
Real initialFixing() const
◆ update()
◆ amount()
◆ nominal()
◆ rate()
◆ dayCounter()
DayCounter dayCounter |
( |
| ) |
const |
|
override |
◆ accruedAmount()
Real accruedAmount |
( |
const Date & |
d | ) |
const |
|
override |
◆ underlying()
QuantLib::ext::shared_ptr< Coupon > underlying |
( |
| ) |
const |
◆ quantity()
◆ index()
QuantLib::ext::shared_ptr< Index > index |
( |
| ) |
const |
◆ fixingDate()
const Date & fixingDate |
( |
| ) |
const |
◆ initialFixing()
Real initialFixing |
( |
| ) |
const |
◆ multiplier()
Real multiplier |
( |
| ) |
const |
◆ accept()
void accept |
( |
AcyclicVisitor & |
v | ) |
|
|
override |
Definition at line 69 of file indexedcoupon.cpp.
69 {
70 Visitor<IndexedCoupon>* v1 = dynamic_cast<Visitor<IndexedCoupon>*>(&v);
71 if (v1 != 0)
72 v1->visit(*this);
73 else
74 Coupon::accept(v);
75}
◆ c_
QuantLib::ext::shared_ptr<Coupon> c_ |
|
private |
◆ qty_
◆ index_
QuantLib::ext::shared_ptr<Index> index_ |
|
private |
◆ fixingDate_
◆ initialFixing_