|
| | mtsStateIndex () |
| | mtsStateIndex (double timestamp, int index, TimeTicksType ticks, int Length) |
| | ~mtsStateIndex () |
| int | Length (void) const |
| int | Index (void) const |
| TimeTicksType | Ticks (void) const |
| mtsStateIndex & | operator-- () |
| mtsStateIndex & | operator-= (int number) |
| mtsStateIndex | operator- (int number) |
| bool | operator== (const mtsStateIndex &that) const |
| bool | operator!= (const mtsStateIndex &that) const |
| void | ToStream (std::ostream &outputStream) const override |
| void | ToStreamRaw (std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const override |
| void | SerializeRaw (std::ostream &outputStream) const override |
| void | DeSerializeRaw (std::istream &inputStream) override |
| | mtsGenericObject (void) |
| | mtsGenericObject (double timestamp, bool automaticTimestamp, bool valid) |
| | mtsGenericObject (const mtsGenericObject &other) |
| virtual | ~mtsGenericObject (void) |
| mtsGenericObject & | operator= (const mtsGenericObject &other) |
| bool | SetTimestampIfAutomatic (double timestamp) |
| virtual bool | FromStreamRaw (std::istream &inputStream, const char delimiter=' ') |
| size_t | ScalarNumber (void) const |
| bool | ScalarNumberIsFixed (void) const |
| virtual | ~cmnGenericObject (void) |
| virtual const cmnClassServicesBase * | Services (void) const =0 |
| bool | ReconstructFrom (const cmnGenericObject &other) |
| std::string | ToString (void) const |
| virtual cmnLogger::StreamBufType * | GetLogMultiplexer (void) const |
| virtual double | Scalar (const size_t CMN_UNUSED(index)) const CISST_THROW(std |
| virtual std::string | ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const |
The time indexing of state data is provided by the mtsStateIndex class.
Each iteration of the Task Loop increments a tick counter, which is stored as an unsigned long. (mtsTimeTicks). A mtsStateIndex object contains the following information: The tick value is stored in the mtsStateIndex class to act as a data validity check. This is used to ensure that the circular buffer has not wrapped around and overwritten the index entry between the time that the mtsStateIndex object was created and the time it was used.