Period Class Reference
[Date and time calculations]
#include <ql/time/period.hpp>
Detailed Description
Time period described by a number of a given time unit.
- Examples:
-
BermudanSwaption.cpp, ConvertibleBonds.cpp, Repo.cpp, and swapvaluation.cpp.
Public Member Functions | |
Period (Integer n, TimeUnit units) | |
Period (Frequency f) | |
Integer | length () const |
TimeUnit | units () const |
Frequency | frequency () const |
Related Functions | |
(Note that these are not member functions.) | |
template<typename T> | |
Period | operator * (T n, TimeUnit units) |
template<typename T> | |
Period | operator * (TimeUnit units, T n) |
Period | operator- (const Period &) |
Period | operator * (Integer n, const Period &) |
Period | operator * (const Period &, Integer n) |
bool | operator< (const Period &, const Period &) |
bool | operator== (const Period &, const Period &) |
bool | operator!= (const Period &, const Period &) |
bool | operator> (const Period &, const Period &) |
bool | operator<= (const Period &, const Period &) |
bool | operator>= (const Period &, const Period &) |
std::ostream & | operator<< (std::ostream &, const Period &) |
Friends And Related Function Documentation
std::ostream & operator<< | ( | std::ostream & | , | |
const Period & | ||||
) | [related] |