7 #ifndef PXR_USD_AR_TIMESTAMP_H
8 #define PXR_USD_AR_TIMESTAMP_H
30 : _time(std::numeric_limits<double>::quiet_NaN())
43 return !std::isnan(_time);
52 _IssueInvalidGetTimeError();
86 return !lhs.
IsValid() || (rhs.
IsValid() && lhs._time <= rhs._time);
98 void _IssueInvalidGetTimeError()
const;
101 template <
class HashState>
ArTimestamp()
Create an invalid timestamp.
GT_API const UT_StringHolder time
friend bool operator!=(const ArTimestamp &lhs, const ArTimestamp &rhs)
friend bool operator>=(const ArTimestamp &lhs, const ArTimestamp &rhs)
friend bool operator>(const ArTimestamp &lhs, const ArTimestamp &rhs)
bool IsValid() const
Return true if this timestamp is valid, false otherwise.
friend void TfHashAppend(HashState &h, const ArTimestamp &t)
friend bool operator==(const ArTimestamp &lhs, const ArTimestamp &rhs)
friend bool operator<(const ArTimestamp &lhs, const ArTimestamp &rhs)
GLfloat GLfloat GLfloat GLfloat h
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
ArTimestamp(double time)
Create a timestamp at time, which must be a Unix time value.
friend bool operator<=(const ArTimestamp &lhs, const ArTimestamp &rhs)