A time interval.
More...
#include <Interval.h>
Interval::Interval |
( |
const epicsTime & |
start, |
|
|
const epicsTime & |
end |
|
) |
| |
|
inline |
Construct Interval with given start..end.
void Interval::add |
( |
const Interval & |
other | ) |
|
|
inline |
Reset Interval to null start and end times.
bool Interval::covers |
( |
const Interval & |
other | ) |
const |
|
inline |
Check if this interval 'covers' another one, meaning this interval matches the other one, or starts before and ends after the other one.
- Returns
- true if this interval fully covers (or matches) other interval.
const epicsTime& Interval::getEnd |
( |
| ) |
const |
|
inline |
const epicsTime& Interval::getStart |
( |
| ) |
const |
|
inline |
bool Interval::isValid |
( |
| ) |
const |
|
inline |
- Returns
- true if both start and end time are non-null.
bool Interval::operator!= |
( |
const Interval & |
other | ) |
const |
|
inline |
- Returns
- true if this interval differs from other interval.
bool Interval::operator== |
( |
const Interval & |
other | ) |
const |
|
inline |
- Returns
- true if this interval matches other interval.
bool Interval::overlaps |
( |
const Interval & |
other | ) |
const |
|
inline |
Check if this and other interval overlap.
Note: They might touch, e.g. start1 <= end1 <= start2 <= end2, but that's not considered an overlap.
- Returns
- true if they overlap.
void Interval::setEnd |
( |
const epicsTime & |
time | ) |
|
|
inline |
void Interval::setStart |
( |
const epicsTime & |
time | ) |
|
|
inline |
double Interval::width |
( |
| ) |
const |
|
inline |
- Returns
- time range of this interval in seconds.
The documentation for this class was generated from the following file:
- /home/malitsky/projects/epics-archiver/sourceforge/trunk/ea4-cpp/include/common/storage/Interval.h