34 #define TF_RANGES_CC_VERSION \ 44 Mbegin(begin), Mend(end)
71 "ERROR (Trange::largestcommon): ranges must overlap");
80 "ERROR (Trange::smallestcommon): ranges must overlap");
128 "ERROR (Trange::shrink): ranges must overlap");
TAbsoluteTime begin() const
TAbsoluteTime end() const
#define libtime_assert(C, M)
Check an assertion and report by throwing an exception.
class to contain relative times
TRange largestcommon(const TRange &) const
find largest range spanned by both
TRange & advance(const TRelativeTime &)
advance this range by dt
TRange advancedby(const TRelativeTime &) const
return a range advanced by dt
void expand(const TRange &)
set to largest range spanned by both
bool overlaps(const TRange &) const
true if other range overlaps this one
TRange & delay(const TRelativeTime &)
delay this range by dt
void shrink(const TRange &)
set to smallest range common to both
bool includes(const TAbsoluteTime &) const
true if date is within range
TRange delayedby(const TRelativeTime &) const
return a range delayed by dt
class to contain absolute times
TRange smallestcommon(const TRange &) const
find largest range common to both