21#include <ql/time/daycounters/simpledaycounter.hpp>
26 const std::vector<QuantLib::ext::shared_ptr<InterestRateIndex>>& indices,
28 : InterestRateIndex(familyName, 0 * Days, indices.front()->fixingDays(), Currency(), fixingCalendar,
30 indices_(indices), formula_(formula) {
32 std::ostringstream name;
33 name << familyName <<
"(";
34 for (Size i = 0; i <
indices_.size(); ++i) {
45 std::vector<Real> values;
49 values.push_back(i->fixing(fixingDate,
false));
51 return formula_(values.begin(), values.end());
55 std::vector<Real> values;
57 Real f = i->pastFixing(fixingDate);
60 if (f == Null<Real>())
64 return formula_(values.begin(), values.end());