27#ifndef quantlib_period_hpp
28#define quantlib_period_hpp
146 template <
typename T>
151 template <
typename T>
163 return !(p1 < p2 || p2 < p1);
Period & operator+=(const Period &)
Period(Integer n, TimeUnit units)
Period & operator/=(Integer)
Period & operator*=(Integer)
Period normalized() const
Period & operator-=(const Period &)
Frequency frequency() const
Frequency
Frequency of events.
TimeUnit
Units used to describe time periods.
detail::short_period_holder short_period(const Period &p)
output periods in short format (e.g. "2w")
detail::long_period_holder long_period(const Period &p)
output periods in long format (e.g. "2 weeks")
QL_INTEGER Integer
integer number
std::ostream & operator<<(std::ostream &out, const short_date_holder &holder)
Quantity operator-(const Quantity &m1, const Quantity &m2)
bool operator==(const Currency &c1, const Currency &c2)
Real weeks(const Period &p)
bool operator<(const Quantity &m1, const Quantity &m2)
Real months(const Period &p)
Quantity operator*(const Quantity &m, Real x)
Real years(const Period &p)
bool operator>=(const Quantity &m1, const Quantity &m2)
std::ostream & operator<<(std::ostream &out, GFunctionFactory::YieldCurveModel type)
Quantity operator+(const Quantity &m1, const Quantity &m2)
bool operator!=(const Currency &c1, const Currency &c2)
bool operator>(const Quantity &m1, const Quantity &m2)
Real days(const Period &p)
bool operator<=(const Quantity &m1, const Quantity &m2)
Real operator/(const Quantity &m1, const Quantity &m2)
long_period_holder(const Period &p)
short_period_holder(Period p)