libtime++: Date and time calculation
libtime::TRange Class Reference

time range More...

#include <libtime++.h>

Collaboration diagram for libtime::TRange:

Public Member Functions

 TRange ()
 
 TRange (const TAbsoluteTime &begin, const TAbsoluteTime &end)
 
TAbsoluteTime begin () const
 
TAbsoluteTime end () const
 
TRelativeTime size () const
 
bool includes (const TAbsoluteTime &) const
 true if date is within range More...
 
bool includes (const TRange &) const
 true if range is fully included in this range More...
 
bool overlaps (const TRange &) const
 true if other range overlaps this one More...
 
TRange largestcommon (const TRange &) const
 find largest range spanned by both More...
 
TRange smallestcommon (const TRange &) const
 find largest range common to both More...
 
TRangedelay (const TRelativeTime &)
 delay this range by dt More...
 
TRangeadvance (const TRelativeTime &)
 advance this range by dt More...
 
TRange delayedby (const TRelativeTime &) const
 return a range delayed by dt More...
 
TRange advancedby (const TRelativeTime &) const
 return a range advanced by dt More...
 
void expand (const TRange &)
 set to largest range spanned by both More...
 
void shrink (const TRange &)
 set to smallest range common to both More...
 

Private Attributes

TAbsoluteTime Mbegin
 
TAbsoluteTime Mend
 

Detailed Description

time range

Definition at line 612 of file libtime++.h.


The documentation for this class was generated from the following files: