Period Class Reference
[Date and time calculations]
#include <ql/period.hpp>
Detailed Description
Time period described by a number of a given time unit.- Examples:
-
BermudanSwaption.cpp, ConvertibleBonds.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.) | |
| Period | operator * (Integer n, TimeUnit units) |
| Period | operator * (TimeUnit units, Integer 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 &) |