QuantLib_Period man page



#include <ql/time/period.hpp>

Public Member Functions

Period (Integer n, TimeUnit units)
Period (Frequency f)
Integer length () const
TimeUnit units () const
Frequency frequency () const
Period & operator+= (const Period &)
Period & operator-= (const Period &)
Period & operator/= (Integer)
void normalize ()

Detailed Description

This class provides a Period (length + TimeUnit) class and implements a limited algebra.


self-consistency of algebra is checked.

Examples: BermudanSwaption.cpp, Bonds.cpp, CallableBonds.cpp, CDS.cpp, ConvertibleBonds.cpp, FittedBondCurve.cpp, Repo.cpp, and swapvaluation.cpp.


Generated automatically by Doxygen for QuantLib from the source code.

Referenced By

The man pages days(3), months(3), normalize(3), Period(3), units(3), weeks(3) and years(3) are aliases of QuantLib_Period(3).

Mon Apr 30 2018 Version 1.12.1 QuantLib