5 #include <libutl/Duration.h> 6 #include <libutl/Span.h> 7 #include <libutl/Time.h> 86 return (numSpanned(unit) >= num);
#define UTL_CLASS_DEFID
Default init() and deInit() (which are merely place-holders).
const T & begin() const
Get the beginning of the span.
TimeSpan(const Span< Time, Duration > &rhs)
Constructor.
Span of object-derived objects.
const TimeSpan & operator-=(const Duration &rhs)
Subtract the given duration from the begin and end times.
#define UTL_CLASS_DECL_NT_TPL2(DC, BC, T1, T2)
Declaration of standard UTL++ functionality for a non-template class that inherits from a template cl...
const T & end() const
Get the end of the span.
const TimeSpan & operator+=(const Duration &rhs)
Add the given duration to the begin and end times.
unsigned int uint_t
Unsigned integer.
TimeSpan(const Time &begin, const Time &end)
Constructor.
Duration duration() const
Get the duration of the span.
void shift(const Duration &rhs)
Add the given duration to the begin and end times.
Root of UTL++ class hierarchy.
int compare(bool lhs, bool rhs)
Compare two boolean values.
bool spans(uint_t unit, uint_t num=1) const
Determine whether self spans the given multiple of the given unit.