Average FX Linked cash-flow. More...
#include <qle/cashflows/fxlinkedcashflow.hpp>
Public Member Functions | |
AverageFXLinkedCashFlow (const Date &cashFlowDate, const std::vector< Date > &fixingDates, Real foreignAmount, QuantLib::ext::shared_ptr< FxIndex > fxIndex, const bool inverted=false) | |
CashFlow interface | |
Date | date () const override |
Real | amount () const override |
Visitability | |
void | accept (AcyclicVisitor &) override |
Observer interface | |
void | update () override |
Public Member Functions inherited from AverageFXLinked | |
AverageFXLinked (const std::vector< Date > &fixingDates, Real foreignAmount, QuantLib::ext::shared_ptr< FxIndex > fxIndex, const bool inverted=false) | |
virtual | ~AverageFXLinked () |
const std::vector< Date > & | fxFixingDates () const |
Real | foreignAmount () const |
const QuantLib::ext::shared_ptr< FxIndex > & | fxIndex () const |
Real | fxRate () const |
virtual QuantLib::ext::shared_ptr< AverageFXLinked > | clone (QuantLib::ext::shared_ptr< FxIndex > fxIndex)=0 |
FXLinked interface | |
Date | cashFlowDate_ |
QuantLib::ext::shared_ptr< AverageFXLinked > | clone (QuantLib::ext::shared_ptr< FxIndex > fxIndex) override |
std::map< Date, Real > | fixings () const |
Additional Inherited Members | |
Protected Attributes inherited from AverageFXLinked | |
std::vector< Date > | fxFixingDates_ |
Real | foreignAmount_ |
QuantLib::ext::shared_ptr< FxIndex > | fxIndex_ |
bool | inverted_ = false |
Average FX Linked cash-flow.
Cashflow of Domestic currency where the amount is fx linked to some fixed foreign amount.
Difference to the FX Linked cash-flow: The FX rate is an arithmetic average across observation dates.
This is not a lazy object.
Definition at line 153 of file fxlinkedcashflow.hpp.
AverageFXLinkedCashFlow | ( | const Date & | cashFlowDate, |
const std::vector< Date > & | fixingDates, | ||
Real | foreignAmount, | ||
QuantLib::ext::shared_ptr< FxIndex > | fxIndex, | ||
const bool | inverted = false |
||
) |
Definition at line 49 of file fxlinkedcashflow.cpp.
|
override |
|
override |
|
override |
Definition at line 186 of file fxlinkedcashflow.hpp.
|
override |
Definition at line 171 of file fxlinkedcashflow.hpp.
|
overridevirtual |
Implements AverageFXLinked.
Definition at line 60 of file fxlinkedcashflow.cpp.
std::map< Date, Real > fixings | ( | ) | const |
Definition at line 64 of file fxlinkedcashflow.cpp.
|
private |
Definition at line 183 of file fxlinkedcashflow.hpp.