Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Dv::Util::Period Class Reference

A Period is simply a Date with a Duration. More...

#include <period.h>

Collaboration diagram for Dv::Util::Period:

Collaboration graph
[legend]
List of all members.

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. start + size.
const Durationsize () const
 Size of period.

Private Attributes

Date start_
Duration size_

Detailed Description

A Period is simply a Date with a Duration.

Definition at line 69 of file period.h.


Constructor & Destructor Documentation

Dv::Util::Period::Period const Date start,
const Duration size
[inline]
 

Constructor.

Definition at line 72 of file period.h.

Dv::Util::Period::Period Date  start,
Date  end
throw (std::runtime_error)
 

Constructor, the duration will be such that start + size = end.


Member Function Documentation

Date Dv::Util::Period::start  )  const [inline]
 

Start date of period.

Definition at line 77 of file period.h.

Date Dv::Util::Period::end  )  const
 

End date of period, i.e. start + size.

const Duration& Dv::Util::Period::size  )  const [inline]
 

Size of period.

Definition at line 81 of file period.h.


Member Data Documentation

Date Dv::Util::Period::start_ [private]
 

Definition at line 83 of file period.h.

Duration Dv::Util::Period::size_ [private]
 

Definition at line 84 of file period.h.


The documentation for this class was generated from the following file:
dvutil-0.13.15 [30 December, 2004]