23#ifndef quantext_year_counter_hpp
24#define quantext_year_counter_hpp
26#include <ql/time/daycounter.hpp>
42 class Impl :
public DayCounter::Impl {
44 std::string
name()
const override {
return "Year"; }
45 QuantLib::Date::serial_type
dayCount(
const QuantLib::Date& d1,
const QuantLib::Date& d2)
const override;
46 QuantLib::Time
yearFraction(
const QuantLib::Date& d1,
const QuantLib::Date& d2,
const QuantLib::Date&,
47 const QuantLib::Date&)
const override;
QuantLib::Time yearFraction(const QuantLib::Date &d1, const QuantLib::Date &d2, const QuantLib::Date &, const QuantLib::Date &) const override
std::string name() const override
QuantLib::Date::serial_type dayCount(const QuantLib::Date &d1, const QuantLib::Date &d2) const override
Year counter for when we want a whole number year fraction.