26 const QuantLib::Date& fxFixingDate, QuantLib::Real foreignAmount,
27 QuantLib::ext::shared_ptr<FxIndex> fxIndex,
28 const QuantLib::ext::shared_ptr<FixedRateCoupon>& underlying)
29 : FixedRateCoupon(underlying->date(), foreignAmount, underlying->rate(),
30 underlying->dayCounter(), underlying->accrualStartDate(),
31 underlying->accrualEndDate(), underlying->referencePeriodStart(),
32 underlying->referencePeriodEnd()),
33 FXLinked(fxFixingDate, foreignAmount, fxIndex), underlying_(underlying) {
55 Visitor<FixedRateFXLinkedNotionalCoupon>* v1 =
dynamic_cast<Visitor<FixedRateFXLinkedNotionalCoupon>*
>(&v);
59 FixedRateCoupon::accept(v);
Base class for FX Linked cashflows.
const QuantLib::ext::shared_ptr< FxIndex > & fxIndex() const
Real foreignAmount() const
Date fxFixingDate() const
QuantLib::ext::shared_ptr< FXLinked > clone(QuantLib::ext::shared_ptr< FxIndex > fxIndex) override
void accept(QuantLib::AcyclicVisitor &) override
QuantLib::Rate rate() const override
QuantLib::Rate nominal() const override
QuantLib::ext::shared_ptr< FixedRateCoupon > underlying() const
more inspectors
const QuantLib::ext::shared_ptr< FixedRateCoupon > underlying_
FixedRateFXLinkedNotionalCoupon(const QuantLib::Date &fxFixingDate, QuantLib::Real foreignAmount, QuantLib::ext::shared_ptr< FxIndex > fxIndex, const QuantLib::ext::shared_ptr< FixedRateCoupon > &underlying)
FloatingRateFXLinkedNotionalCoupon.
Coupon paying a fixed rate but with an FX linked notional.