|
| | PeriodicTimeSpec (const PeriodicTimeSpec &) |
| | Copy constructor. More...
|
| |
| | PeriodicTimeSpec (const TimeSpec &) |
| | Constructor that creates a PeriodicTimeSpec from a TimeSpec. More...
|
| |
| | PeriodicTimeSpec (TimeTickType validity_start=0, TimeTickType period=1) |
| | Constructor. More...
|
| |
| bool | complete () |
| | Complete method, called after constructor and supply of parameters, has to check the validity of the parameters. More...
|
| |
|
const char * | getTypeName () |
| | Type name information.
|
| |
|
| ~PeriodicTimeSpec () |
| | Destructor.
|
| |
|
TimeSpec * | clone () const |
| | Clone method, re-implemented from TimeSpec.
|
| |
| bool | advance (const TimeSpec &a) |
| | Advances the interval in the PeriodicTimeSpec with a value equal to the period specified in its creation, but only if the end time specified in the TimeSpec parameter is beyond the PeriodicTimeSpec's end time. More...
|
| |
|
bool | advance (const DataTimeSpec &a) |
| | Advance with a DataTimeSpec.
|
| |
| bool | advance (const TimeTickType &validity_end=MAX_TIMETICK) |
| | Advance with an end time tick. More...
|
| |
| bool | greedyAdvance (const DataTimeSpec &a) |
| | "Greedy" variant of the advance method. More...
|
| |
| bool | forceAdvance (const TimeTickType &validity_point) |
| | Spool ahead fast (so forget all the intermediate intervals), to the time specified in the argument. More...
|
| |
| bool | forceAdvance (const DataTimeSpec &t) |
| | Spool ahead fast. More...
|
| |
| void | slideAdvance (const TimeTickType &t) |
| | Slide forward, can also change offset. More...
|
| |
| TimeTickType | getPeriod () const |
| | Read back the period. More...
|
| |
| void | setPeriod (TimeTickType p) |
| | Change the period. More...
|
| |
|
ostream & | print (ostream &os) const |
| | Write to stream, mainly for debugging purposes.
|
| |
|
| TimeSpec (const TimeSpec &) |
| | Copy constructor.
|
| |
| | TimeSpec (TimeTickType validity_start, TimeTickType validity_end) |
| | Complete constructor, with the start and end time. More...
|
| |
| | TimeSpec (int validity_start, int validity_end) |
| | Complete constructor, with the start and end time. More...
|
| |
| | TimeSpec (TimeTickType validity_start) |
| | Constructor for a TimeSpec that starts and ends at the same time. More...
|
| |
| | TimeSpec (double validity_start, double validity_end) |
| | Constructor with double arguments. More...
|
| |
| | TimeSpec (float validity_start, float validity_end) |
| | Variation with float. More...
|
| |
|
| TimeSpec (const DataTimeSpec &) |
| | Constructor with a DataTimeSpec as input.
|
| |
|
| TimeSpec () |
| | Default constructor.
|
| |
|
virtual | ~TimeSpec () |
| | Destructor.
|
| |
|
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. More...
|
| |
|
ostream & | print (ostream &os) const |
| | Write to stream, mainly for debugging purposes.
|
| |
A PeriodicTimeSpec is derived from the normal TimeSpec.
It behaves differently, in that it tries to enforce the period specified at its creation in the "advance" updates.