equity coupon More...
#include <qle/cashflows/equitycoupon.hpp>
Public Member Functions | |
EquityCoupon (const Date &paymentDate, Real nominal, const Date &startDate, const Date &endDate, Natural fixingDays, const QuantLib::ext::shared_ptr< QuantExt::EquityIndex2 > &equityCurve, const DayCounter &dayCounter, EquityReturnType returnType, Real dividendFactor=1.0, bool notionalReset=false, Real initialPrice=Null< Real >(), Real quantity=Null< Real >(), const Date &fixingStartDate=Date(), const Date &fixingEndDate=Date(), const Date &refPeriodStart=Date(), const Date &refPeriodEnd=Date(), const Date &exCouponDate=Date(), const QuantLib::ext::shared_ptr< FxIndex > &fxIndex=nullptr, const bool initialPriceIsInTargetCcy=false, Real legInitialNotional=Null< Real >(), const Date &legFixingDate=Date()) | |
CashFlow interface | |
Real | amount () const override |
Coupon interface | |
DayCounter | dayCounter () const override |
Real | accruedAmount (const Date &) const override |
Rate | rate () const override |
Real | nominal () const override |
Inspectors | |
const QuantLib::ext::shared_ptr< QuantExt::EquityIndex2 > & | equityCurve () const |
equity reference rate curve More... | |
const QuantLib::ext::shared_ptr< FxIndex > & | fxIndex () const |
fx index curve More... | |
EquityReturnType | returnType () const |
the return type of the coupon More... | |
Real | dividendFactor () const |
are dividends scaled (e.g. to account for tax) More... | |
Date | fixingStartDate () const |
The date at which the starting equity price is fixed. More... | |
Date | fixingEndDate () const |
The date at which performance is measured. More... | |
std::vector< Date > | fixingDates () const |
return both fixing dates More... | |
Real | initialPrice () const |
initial price More... | |
bool | initialPriceIsInTargetCcy () const |
initial price is in target ccy (if applicable, i.e. if fxIndex != null, otherwise ignored) More... | |
Real | quantity () const |
Number of equity shares held. More... | |
Real | fxRate () const |
FX conversion rate (or 1.0 if not applicable) More... | |
Date | fixingDate () const |
This function is called for other coupon types. More... | |
Real | legInitialNotional () const |
Initial notional of the equity leg, to compute quantity if not provided in the resetting case. More... | |
Date | legFixingDate () const |
Fixing date of the first equity coupon, to compute quantity if not provided in the resetting case. More... | |
Observer interface | |
void | update () override |
Visitability | |
QuantLib::ext::shared_ptr< EquityCouponPricer > | pricer_ |
Natural | fixingDays_ |
QuantLib::ext::shared_ptr< QuantExt::EquityIndex2 > | equityCurve_ |
DayCounter | dayCounter_ |
EquityReturnType | returnType_ |
Real | dividendFactor_ |
bool | notionalReset_ |
Real | initialPrice_ |
bool | initialPriceIsInTargetCcy_ |
Real | quantity_ |
Date | fixingStartDate_ |
Date | fixingEndDate_ |
Natural | paymentLag_ |
QuantLib::ext::shared_ptr< FxIndex > | fxIndex_ |
Real | legInitialNotional_ |
Date | legFixingDate_ |
virtual void | accept (AcyclicVisitor &) override |
void | setPricer (const QuantLib::ext::shared_ptr< EquityCouponPricer > &) |
QuantLib::ext::shared_ptr< EquityCouponPricer > | pricer () const |
equity coupon
Definition at line 53 of file equitycoupon.hpp.
EquityCoupon | ( | const Date & | paymentDate, |
Real | nominal, | ||
const Date & | startDate, | ||
const Date & | endDate, | ||
Natural | fixingDays, | ||
const QuantLib::ext::shared_ptr< QuantExt::EquityIndex2 > & | equityCurve, | ||
const DayCounter & | dayCounter, | ||
EquityReturnType | returnType, | ||
Real | dividendFactor = 1.0 , |
||
bool | notionalReset = false , |
||
Real | initialPrice = Null<Real>() , |
||
Real | quantity = Null<Real>() , |
||
const Date & | fixingStartDate = Date() , |
||
const Date & | fixingEndDate = Date() , |
||
const Date & | refPeriodStart = Date() , |
||
const Date & | refPeriodEnd = Date() , |
||
const Date & | exCouponDate = Date() , |
||
const QuantLib::ext::shared_ptr< FxIndex > & | fxIndex = nullptr , |
||
const bool | initialPriceIsInTargetCcy = false , |
||
Real | legInitialNotional = Null<Real>() , |
||
const Date & | legFixingDate = Date() |
||
) |
Definition at line 57 of file equitycoupon.cpp.
|
override |
Definition at line 66 of file equitycoupon.hpp.
|
override |
|
override |
Definition at line 148 of file equitycoupon.cpp.
|
override |
Definition at line 159 of file equitycoupon.cpp.
|
override |
Definition at line 121 of file equitycoupon.cpp.
const QuantLib::ext::shared_ptr< QuantExt::EquityIndex2 > & equityCurve | ( | ) | const |
equity reference rate curve
Definition at line 83 of file equitycoupon.hpp.
const QuantLib::ext::shared_ptr< FxIndex > & fxIndex | ( | ) | const |
fx index curve
Definition at line 85 of file equitycoupon.hpp.
EquityReturnType returnType | ( | ) | const |
the return type of the coupon
Definition at line 87 of file equitycoupon.hpp.
Real dividendFactor | ( | ) | const |
are dividends scaled (e.g. to account for tax)
Definition at line 89 of file equitycoupon.hpp.
Date fixingStartDate | ( | ) | const |
The date at which the starting equity price is fixed.
Definition at line 91 of file equitycoupon.hpp.
Date fixingEndDate | ( | ) | const |
The date at which performance is measured.
Definition at line 93 of file equitycoupon.hpp.
std::vector< Date > fixingDates | ( | ) | const |
return both fixing dates
Definition at line 167 of file equitycoupon.cpp.
Real initialPrice | ( | ) | const |
initial price
Definition at line 139 of file equitycoupon.cpp.
bool initialPriceIsInTargetCcy | ( | ) | const |
initial price is in target ccy (if applicable, i.e. if fxIndex != null, otherwise ignored)
Definition at line 146 of file equitycoupon.cpp.
Real quantity | ( | ) | const |
Number of equity shares held.
Definition at line 112 of file equitycoupon.cpp.
Real fxRate | ( | ) | const |
FX conversion rate (or 1.0 if not applicable)
Definition at line 134 of file equitycoupon.cpp.
Date fixingDate | ( | ) | const |
This function is called for other coupon types.
Definition at line 105 of file equitycoupon.hpp.
Real legInitialNotional | ( | ) | const |
Initial notional of the equity leg, to compute quantity if not provided in the resetting case.
Definition at line 110 of file equitycoupon.hpp.
Date legFixingDate | ( | ) | const |
Fixing date of the first equity coupon, to compute quantity if not provided in the resetting case.
Definition at line 112 of file equitycoupon.hpp.
|
override |
Definition at line 117 of file equitycoupon.hpp.
|
overridevirtual |
Definition at line 148 of file equitycoupon.hpp.
void setPricer | ( | const QuantLib::ext::shared_ptr< EquityCouponPricer > & | pricer | ) |
Definition at line 103 of file equitycoupon.cpp.
QuantLib::ext::shared_ptr< EquityCouponPricer > pricer | ( | ) | const |
|
protected |
Definition at line 128 of file equitycoupon.hpp.
|
protected |
Definition at line 129 of file equitycoupon.hpp.
|
protected |
Definition at line 130 of file equitycoupon.hpp.
|
protected |
Definition at line 131 of file equitycoupon.hpp.
|
protected |
Definition at line 132 of file equitycoupon.hpp.
|
protected |
Definition at line 133 of file equitycoupon.hpp.
|
protected |
Definition at line 134 of file equitycoupon.hpp.
|
protected |
Definition at line 135 of file equitycoupon.hpp.
|
protected |
Definition at line 136 of file equitycoupon.hpp.
|
mutableprotected |
Definition at line 137 of file equitycoupon.hpp.
|
protected |
Definition at line 138 of file equitycoupon.hpp.
|
protected |
Definition at line 139 of file equitycoupon.hpp.
|
protected |
Definition at line 140 of file equitycoupon.hpp.
|
protected |
Definition at line 141 of file equitycoupon.hpp.
|
protected |
Definition at line 142 of file equitycoupon.hpp.
|
protected |
Definition at line 143 of file equitycoupon.hpp.