#include <ql/time/period.hpp>
|  | 
| (Note that these are not member functions.)  | 
| Real | years (const Period &) | 
|  | 
| Real | months (const Period &) | 
|  | 
| Real | weeks (const Period &) | 
|  | 
| Real | days (const Period &) | 
|  | 
| 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) | 
|  | 
| Period | operator/ (const Period &, Integer n) | 
|  | 
| Period | operator+ (const Period &, const Period &) | 
|  | 
| Period | 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 &) | 
|  | 
| bool | operator>= (const Period &, const Period &) | 
|  | 
| std::ostream & | operator<< (std::ostream &, const Period &) | 
|  | 
This class provides a Period (length + TimeUnit) class and implements a limited algebra.
- Tests:
- self-consistency of algebra is checked. 
- Examples: 
- BermudanSwaption.cpp, Bonds.cpp, CallableBonds.cpp, CDS.cpp, ConvertibleBonds.cpp, FittedBondCurve.cpp, Repo.cpp, and swapvaluation.cpp.
◆ years()
◆ months()
◆ weeks()
◆ days()
◆ operator*() [1/4]
◆ operator*() [2/4]
◆ operator-() [1/2]
◆ operator*() [3/4]
◆ operator*() [4/4]
◆ operator/()
◆ operator+()
◆ operator-() [2/2]
◆ operator<()
◆ operator==()
◆ operator!=()
◆ operator>()
◆ operator<=()
◆ operator>=()
◆ operator<<()
  
  | 
        
          | std::ostream & operator<< | ( | std::ostream & | , |  
          |  |  | const Period & |  |  
          |  | ) |  |  |  | related |