26#include <ql/index.hpp>
27#include <ql/time/calendars/nullcalendar.hpp>
41 QuantLib::Calendar
fixingCalendar()
const override {
return QuantLib::NullCalendar(); }
43 QuantLib::Real
fixing(
const QuantLib::Date& fixingDate,
bool forecastTodaysFixing =
false)
const override {
45 QL_FAIL(
"GenericIndex, fixingDate is after expiry");
46 QuantLib::Real tmp = timeSeries()[fixingDate];
47 QL_REQUIRE(tmp != QuantLib::Null<QuantLib::Real>(),
"Missing " <<
name() <<
" fixing for " << fixingDate);
bool isValidFixingDate(const QuantLib::Date &fixingDate) const override
GenericIndex(const std::string &name, const QuantLib::Date &expiry=QuantLib::Date())
QuantLib::Real fixing(const QuantLib::Date &fixingDate, bool forecastTodaysFixing=false) const override
std::string name() const override
QuantLib::Calendar fixingCalendar() const override
const QuantLib::Date & expiry() const