indexed cashflow
More...
#include <qle/cashflows/indexedcoupon.hpp>
indexed cashflow
Definition at line 87 of file indexedcoupon.hpp.
◆ IndexWrappedCashFlow() [1/2]
IndexWrappedCashFlow |
( |
const QuantLib::ext::shared_ptr< CashFlow > & |
c, |
|
|
const Real |
qty, |
|
|
const QuantLib::ext::shared_ptr< Index > & |
index, |
|
|
const Date & |
fixingDate |
|
) |
| |
pays c->amount() * qty * index(fixingDate)
Definition at line 77 of file indexedcoupon.cpp.
80 QL_REQUIRE(
index,
"IndexWrappedCashFlow: index is null");
81 QL_REQUIRE(
fixingDate != Date(),
"IndexWrappedCashFlow: fixingDate is null");
82 registerWith(c);
84}
QuantLib::ext::shared_ptr< Index > index() const
QuantLib::ext::shared_ptr< Index > index_
QuantLib::ext::shared_ptr< CashFlow > c_
const Date & fixingDate() const
◆ IndexWrappedCashFlow() [2/2]
IndexWrappedCashFlow |
( |
const QuantLib::ext::shared_ptr< CashFlow > & |
c, |
|
|
const Real |
qty, |
|
|
const Real |
initialFixing |
|
) |
| |
pays c->amount() * qty * initialFixing
Definition at line 86 of file indexedcoupon.cpp.
89 QL_REQUIRE(
initialFixing != Null<Real>(),
"IndexWrappedCashFlow: initial fixing is null");
90 registerWith(c);
91}
Real initialFixing() const
◆ update()
◆ date()
◆ amount()
◆ underlying()
QuantLib::ext::shared_ptr< CashFlow > 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 112 of file indexedcoupon.cpp.
112 {
113 Visitor<IndexWrappedCashFlow>* v1 = dynamic_cast<Visitor<IndexWrappedCashFlow>*>(&v);
114 if (v1 != 0)
115 v1->visit(*this);
116 else
117 CashFlow::accept(v);
118}
◆ c_
QuantLib::ext::shared_ptr<CashFlow> c_ |
|
private |
◆ qty_
◆ index_
QuantLib::ext::shared_ptr<Index> index_ |
|
private |
◆ fixingDate_
◆ initialFixing_