#include <timestamp.h>
A TimeStamp represents the value of an ExecutionTime at a certain instant. You can compare a TimeStamp with an ExecutionTime to see if the ExecutionTime has changed since the last update of the TimeStamp (in this case the ExecutionTime will be greater than the TimeStamp).
Public Types | |
enum | MAX_ENUM { VALUE } |
Public Member Functions | |
constexpr | TimeStamp () |
TimeStamp (ExecutionTime time) | |
constexpr | TimeStamp (ExecutionTime::ValueType time) |
enum maxon::TimeStamp::MAX_ENUM | MAXON_ENUM_LIST_CLASS (MAX_ENUM) |
MAXON_IMPLICIT | TimeStamp (MAX_ENUM) |
void | UpdateUnchecked (TimeStamp src) |
void | UpdateUnordered (ExecutionTime time) |
Bool | UpdateAtomic (ExecutionTime time) |
Bool | Update (ExecutionTime time) |
operator ExecutionTime::ValueType () const | |
MAXON_OPERATOR_EQUALITY_HASHCODE (TimeStamp, _value) | |
String | ToString (const FormatStatement *fs) const |
Static Public Member Functions | |
static const TimeStamp & | NullValue () |
Static Public Attributes | |
static const MAX_ENUM | MAX |
Private Attributes | |
ExecutionTime::ValueType | _value |
|
strong |
|
constexpr |
Construct a new TimeStamp. The internal value will be set to 0. Because ExecutionTime starts with 1, this means that an initial TimeStamp will be in the past of any valid ExecutionTime.
|
explicit |
|
explicitconstexpr |
Construct a new TimeStamp with a maximum value. I.e., the constructed TimeStamp will be in the future of every valid ExecutionTime.
enum maxon::TimeStamp::MAX_ENUM MAXON_ENUM_LIST_CLASS | ( | MAX_ENUM | ) |
void UpdateUnchecked | ( | TimeStamp | src | ) |
void UpdateUnordered | ( | ExecutionTime | time | ) |
Bool UpdateAtomic | ( | ExecutionTime | time | ) |
Bool Update | ( | ExecutionTime | time | ) |
operator ExecutionTime::ValueType | ( | ) | const |
Returns the internal integer value of this TimeStamp. This can be compared with the value of an ExecutionTime to see if the ExecutionTime has changed since the last update of the TimeStamp.
|
static |
String ToString | ( | const FormatStatement * | fs | ) | const |
|
static |
|
private |