25#ifndef quantlib_coupon_hpp
26#define quantlib_coupon_hpp
Base class for cash flows.
degenerate base class for the Acyclic Visitor pattern
Base class for cash flows.
coupon accruing over a fixed period
virtual Rate rate() const =0
accrued rate
Date::serial_type accrualDays() const
accrual period in days
const Date & referencePeriodEnd() const
end date of the reference period
const Date & accrualStartDate() const
start of the accrual period
void accept(AcyclicVisitor &) override
Date exCouponDate() const override
returns the date that the cash flow trades exCoupon
virtual Real nominal() const
virtual DayCounter dayCounter() const =0
day counter for accrual calculation
const Date & accrualEndDate() const
end of the accrual period
Date date() const override
virtual Real accruedAmount(const Date &) const =0
accrued amount at the given date
Time accruedPeriod(const Date &) const
accrued period as fraction of year at the given date
Date::serial_type accruedDays(const Date &) const
accrued days at the given date
Time accrualPeriod() const
accrual period as fraction of year
const Date & referencePeriodStart() const
start date of the reference period
std::int_fast32_t serial_type
serial number type
Real Time
continuous quantity with 1-year units