A Period is simply a Date with a Duration. More...
#include <period.h>
Public Member Functions | |
Period (const Date &start, const Duration &size) | |
Constructor. | |
Period (Date start, Date end) throw (std::runtime_error) | |
Constructor, the duration will be such that start + size = end . | |
Date | start () const |
Start date of period. | |
Date | end () const |
End date of period, i.e. | |
const Duration & | size () const |
Size of period. | |
Private Attributes | |
Date | start_ |
Duration | size_ |
A Period is simply a Date with a Duration.
It can be thought of as a half open interval [start, .. start+duration[
Definition at line 72 of file period.h.
Constructor, the duration will be such that start + size = end
.
start | of period | |
end | of period |
Date Dv::Period::start | ( | ) | const [inline] |
Date Dv::Period::end | ( | ) | const |
End date of period, i.e.
start + size
.
const Duration& Dv::Period::size | ( | ) | const [inline] |
Date Dv::Period::start_ [private] |
Duration Dv::Period::size_ [private] |
dvutil-1.0.10 | [ 5 December, 2009] |