QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Date interval described by a number of a given time unit. More...
#include <dateinterval.hpp>
Public Member Functions | |
DateInterval ()=default | |
DateInterval (const Date &startDate, const Date &endDate) | |
const Date & | startDate () const |
const Date & | endDate () const |
bool | isDateBetween (Date date, bool includeFirst=true, bool includeLast=true) const |
DateInterval | intersection (const DateInterval &di) const |
bool | operator== (const DateInterval &rhs) const |
bool | operator!= (const DateInterval &rhs) const |
Private Attributes | |
Date | startDate_ |
Date | endDate_ |
Friends | |
std::ostream & | operator<< (std::ostream &, const DateInterval &) |
Date interval described by a number of a given time unit.
Definition at line 35 of file dateinterval.hpp.
|
default |
DateInterval | ( | const Date & | startDate, |
const Date & | endDate | ||
) |
Definition at line 43 of file dateinterval.hpp.
const Date & startDate | ( | ) | const |
Definition at line 48 of file dateinterval.hpp.
const Date & endDate | ( | ) | const |
Definition at line 49 of file dateinterval.hpp.
Definition at line 51 of file dateinterval.hpp.
DateInterval intersection | ( | const DateInterval & | di | ) | const |
Definition at line 65 of file dateinterval.hpp.
bool operator== | ( | const DateInterval & | rhs | ) | const |
Definition at line 72 of file dateinterval.hpp.
bool operator!= | ( | const DateInterval & | rhs | ) | const |
Definition at line 76 of file dateinterval.hpp.
|
friend |
Definition at line 24 of file dateinterval.cpp.
|
private |
Definition at line 39 of file dateinterval.hpp.
|
private |
Definition at line 40 of file dateinterval.hpp.