|
|
| TimeSpec (const TimeSpec &) |
| | Copy constructor.
|
| | TimeSpec (TimeTickType validity_start, TimeTickType validity_end) |
| | Complete constructor, with the start and end time.
|
| | TimeSpec (int validity_start, int validity_end) |
| | Complete constructor, with the start and end time.
|
| | TimeSpec (TimeTickType validity_start) |
| | Constructor for a TimeSpec that starts and ends at the same time.
|
| | TimeSpec (double validity_start, double validity_end) |
| | Constructor with double arguments.
|
| | TimeSpec (float validity_start, float validity_end) |
| | Variation with float.
|
|
| TimeSpec (const DataTimeSpec &) |
| | Constructor with a DataTimeSpec as input.
|
|
| TimeSpec () |
| | Default constructor.
|
|
virtual | ~TimeSpec () |
| | Destructor.
|
| virtual TimeSpec * | clone () const |
| | This clones a TimeSpec, giving back a pointer to an identical copy.
|
| virtual bool | advance (const TimeSpec &a) |
| | Move the time forward with the data given in another TimeSpec.
|
| virtual bool | advance (const DataTimeSpec &a) |
| | Move the time forward with the data given in a DataTimeSpec.
|
|
virtual bool | advance (const TimeTickType &validity_end=MAX_TIMETICK) |
| | Move the time to the next contiguous interval, that ends at the end tick specified in the parameter.
|
| virtual bool | forceAdvance (const TimeTickType &validity_point) |
| | Jump ahead in time, possibly leaving a gap.
|
|
virtual bool | forceAdvance (const DataTimeSpec &t) |
| | Jump ahead in time, possibly leaving a gap.
|
|
TimeTickType | getValidityStart () const |
| | Returns the time at which the interval starts.
|
|
TimeTickType | getValidityEnd () const |
| | Returns the time at which the interval has ended.
|
|
TimeTickType | getValiditySpan () const |
| | Returns the size of the interval.
|
|
bool | operator== (const TimeSpec &other) const |
| | Compare one interval to another.
|
|
bool | operator!= (const TimeSpec &other) const |
| | Compare one interval to another, and return true when not equal.
|
|
TimeSpec | operator+ (const int delta) const |
| | Move an interval up with a time delta.
|
|
TimeSpec | operator+ (const unsigned int delta) const |
| | Move an interval up with a time delta.
|
|
TimeSpec | operator+ (const double delta) const |
| | Move an interval up with a time in seconds.
|
|
TimeSpec | operator+ (const float delta) const |
| | Move an interval up with a time in seconds.
|
|
TimeSpec | operator- (const double delta) const |
| | Move an interval up with a time in seconds.
|
|
TimeSpec | operator- (const float delta) const |
| | Move an interval up with a time in seconds.
|
|
TimeSpec | operator- (const int delta) const |
| | Move an interval back with a time delta.
|
|
TimeSpec | operator- (const unsigned int delta) const |
| | Move an interval back with a time delta.
|
|
int | operator- (const TimeSpec &to) const |
| | Get the difference between two timespec's.
|
|
TimeSpec & | operator= (const DataTimeSpec &o) |
| | Copy from a data timespec.
|
|
double | getDtInSeconds () const |
| | Get the value of the interval in seconds.
|
|
int | getUsecsElapsed () const |
| | Find out how many microseconds elapsed since the formal start of this time.
|
|
std::ostream & | print (std::ostream &os) const |
| | Write to stream, mainly for debugging purposes.
|
A TimeSpec is a specification for a time interval.
It is given in integer time steps, and defines the step from which the time interval is valid, and the step from which it is no longer valid.