23#ifndef quantext_future_expiry_calculator_hpp
24#define quantext_future_expiry_calculator_hpp
26#include <ql/settings.hpp>
27#include <ql/time/date.hpp>
46 virtual QuantLib::Date
nextExpiry(
bool includeExpiry =
true,
const QuantLib::Date& referenceDate = QuantLib::Date(),
47 QuantLib::Natural offset = 0,
bool forOption =
false) = 0;
60 const QuantLib::Date& referenceDate = QuantLib::Date(),
61 bool forOption =
false) = 0;
76 bool forOption =
false) = 0;
Base class for classes that perform date calculations for future contracts.
virtual QuantLib::Date contractDate(const QuantLib::Date &expiryDate)=0
virtual QuantLib::Date priorExpiry(bool includeExpiry=true, const QuantLib::Date &referenceDate=QuantLib::Date(), bool forOption=false)=0
virtual QuantLib::Date nextExpiry(bool includeExpiry=true, const QuantLib::Date &referenceDate=QuantLib::Date(), QuantLib::Natural offset=0, bool forOption=false)=0
virtual QuantLib::Date expiryDate(const QuantLib::Date &contractDate, QuantLib::Natural monthOffset=0, bool forOption=false)=0
virtual ~FutureExpiryCalculator()
virtual QuantLib::Date applyFutureMonthOffset(const QuantLib::Date &contractDate, Natural futureMonthOffset)=0