|
Public Member Functions |
|
void | Set (int t) |
| | Sets the start and end times of the valid_time_range to the same instant time.
|
|
void | Set (int s, int e) |
| | Sets the start and end times of the valid_time_range.
|
|
void | SetStart (int s) |
| | Sets the start time of the valid_time_range.
|
|
void | SetEnd (int e) |
| | Sets the end time of the valid_time_range.
|
|
int | GetStart () const |
| | Gets the start time of the valid_time_range.
|
|
int | GetEnd () const |
| | Gets the end time of the valid_time_range.
|
|
TimeInterval & | operator= (const TimeInterval &vtr) |
| | Assigment operator.
|
|
bool | operator== (const TimeInterval &other_valid_time_range) |
| | Identity Operator.
|
|
bool | operator!= (const TimeInterval &other_valid_time_range) |
| | Inequality Operator.
|
|
TimeInterval | TimeInterval::operator & (const TimeInterval vtr) const |
| | AND operator. Intersects two intervals, returning a new valid_time_range.
|
|
bool | Valid (int time) |
| | Returns true if time is inside the valid_time_range.
|
|
bool | Valid (const TimeInterval other_valid_time_range) |
| | Returns true if valid_time_range is inside the valid_time_range.
|
Static Public Member Functions |
|
static TimeInterval | Forever () |
| | Returns an always valid valid_time_range.
|
|
static TimeInterval | Never () |
| | Returns an always invalid valid_time_range.
|