C++ API Reference
|
Mathematic type that represent a set of pseudo-real-number (in the unit of time), such as [-1s, +1s] U [+2, +5s]. More...
#include <MTimeRange.h>
Public Member Functions | |
MTimeRange () | |
Construct an empty set of time. | |
MTimeRange (MTime, MTime) noexcept | |
Construct closed-time-interval [start, end]. | |
bool | contains (MTime) const noexcept |
Checks if the given time point belongs to this time range. | |
bool | contains (MTime, MTime) const noexcept |
Checks if the given closed-time-interval [start, end] is a subset of this time range. | |
bool | intersects (MTime, MTime) const noexcept |
Check if the given closed-time-interval [start, end] is intersecting with this time range (the intersection is non-empty) | |
bool | empty () const noexcept |
Checks if this time range is an empty set. | |
MClosedTimeInterval | bounds () const noexcept |
Return the tight bounding closed-time-interval of this time range E.g. More... | |
operator bool () const | |
Checks if this set is an empty set. | |
MTimeRange | operator| (const MTimeRange &) const |
Returns the set-union of this and rhs. | |
bool | operator== (const MTimeRange &) const noexcept |
Checks if this set is exactly the same as rhs. | |
Mathematic type that represent a set of pseudo-real-number (in the unit of time), such as [-1s, +1s] U [+2, +5s].
Allows to query if a specific time-point or time-interval is contained in this set
|
noexcept |
Return the tight bounding closed-time-interval of this time range E.g.
bounds [-1,+3] U [+5,+7] -> [-1,+7]