28#include <ql/cashflows/couponpricer.hpp>
29#include <ql/cashflows/floatingratecoupon.hpp>
30#include <ql/termstructures/volatility/equityfx/blackvoltermstructure.hpp>
31#include <ql/time/schedule.hpp>
42 const Date& endDate, Natural fixingDays,
const QuantLib::ext::shared_ptr<FormulaBasedIndex>& index,
43 const Date& refPeriodStart = Date(),
const Date& refPeriodEnd = Date(),
44 const DayCounter& dayCounter = DayCounter(),
bool isInArrears =
false);
52 virtual void accept(AcyclicVisitor&)
override;
56 QuantLib::ext::shared_ptr<FormulaBasedIndex>
index_;
62 FormulaBasedLeg(
const Currency& paymentCurrency,
const Schedule& schedule,
63 const QuantLib::ext::shared_ptr<FormulaBasedIndex>& index);
79 QuantLib::ext::shared_ptr<FormulaBasedIndex>
index_;
96 const std::string& paymentCurrencyCode,
97 const std::map<std::string, Handle<BlackVolTermStructure>>& fxVolatilities,
98 const std::map<std::pair<std::string, std::string>, Handle<QuantExt::CorrelationTermStructure>>& correlation)
100 for (
auto const& v : fxVolatilities)
101 registerWith(v.second);
102 for (
auto const& c : correlation)
103 registerWith(c.second);
109 std::map<std::pair<std::string, std::string>, Handle<QuantExt::CorrelationTermStructure>>
correlation_;
Term structure of correlations.