#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 } |
公共成员函数 |
|
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 | 更新 ( ExecutionTime time) |
operator ExecutionTime::ValueType () const | |
MAXON_OPERATOR_EQUALITY_HASHCODE ( TimeStamp , _value ) | |
String | ToString (const FormatStatement *fs=nullptr) const |
静态公共成员函数 |
|
static const TimeStamp & | NullValue () |
静态公共属性 |
|
static const MAX_ENUM | MAX |
Private Attributes |
|
ExecutionTime::ValueType | _value |
|
strong |
Enumerator | |
---|---|
VALUE |
|
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 |
|
explicit constexpr |
MAXON_IMPLICIT TimeStamp | ( | MAX_ENUM | ) |
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 | ) |
Updates this
TimeStamp
to the current value of
time
. This
TimeStamp
must not be in the future of
time
.
[in] | time | Time to which this TimeStamp is set. |
Bool UpdateAtomic | ( | ExecutionTime | time | ) |
Atomically updates this
TimeStamp
to the current value of
time
. The update is done only if this
TimeStamp
is currently in the past of
time
.
[in] | time | Time to which this TimeStamp is set. |
Bool 更新 | ( | 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 |
MAXON_OPERATOR_EQUALITY_HASHCODE | ( | TimeStamp | , |
_value | |||
) |
String ToString | ( | const FormatStatement * |
fs
=
nullptr
|
) | const |
|
|
private |