19#include <ql/indexes/indexmanager.hpp>
24FXLinked::FXLinked(
const Date& fxFixingDate, Real foreignAmount, QuantLib::ext::shared_ptr<FxIndex> fxIndex)
25 : fxFixingDate_(fxFixingDate), foreignAmount_(foreignAmount), fxIndex_(fxIndex) {}
28 QuantLib::ext::shared_ptr<FxIndex> fxIndex,
const bool inverted)
29 : fxFixingDates_(fxFixingDates), foreignAmount_(foreignAmount), fxIndex_(fxIndex), inverted_(inverted) {}
44 QuantLib::ext::shared_ptr<FxIndex> fxIndex)
45 :
FXLinked(fxFixingDate, foreignAmount, fxIndex), cashFlowDate_(cashFlowDate) {
50 Real foreignAmount, QuantLib::ext::shared_ptr<FxIndex> fxIndex,
52 :
AverageFXLinked(fxFixingDates, foreignAmount, fxIndex, inverted), cashFlowDate_(cashFlowDate) {
65 std::map<Date, Real> result;
QuantLib::ext::shared_ptr< AverageFXLinked > clone(QuantLib::ext::shared_ptr< FxIndex > fxIndex) override
std::map< Date, Real > fixings() const
AverageFXLinkedCashFlow(const Date &cashFlowDate, const std::vector< Date > &fixingDates, Real foreignAmount, QuantLib::ext::shared_ptr< FxIndex > fxIndex, const bool inverted=false)
Date date() const override
std::vector< Date > fxFixingDates_
QuantLib::ext::shared_ptr< FxIndex > fxIndex_
const QuantLib::ext::shared_ptr< FxIndex > & fxIndex() const
const std::vector< Date > & fxFixingDates() const
Real foreignAmount() const
AverageFXLinked(const std::vector< Date > &fixingDates, Real foreignAmount, QuantLib::ext::shared_ptr< FxIndex > fxIndex, const bool inverted=false)
QuantLib::ext::shared_ptr< FXLinked > clone(QuantLib::ext::shared_ptr< FxIndex > fxIndex) override
FXLinkedCashFlow(const Date &cashFlowDate, const Date &fixingDate, Real foreignAmount, QuantLib::ext::shared_ptr< FxIndex > fxIndex)
Date date() const override
Base class for FX Linked cashflows.
QuantLib::ext::shared_ptr< FxIndex > fxIndex_
const QuantLib::ext::shared_ptr< FxIndex > & fxIndex() const
FXLinked(const Date &fixingDate, Real foreignAmount, QuantLib::ext::shared_ptr< FxIndex > fxIndex)
Real foreignAmount() const
Date fxFixingDate() const