7 #ifndef PXR_EXEC_EF_TIME_H 8 #define PXR_EXEC_EF_TIME_H 14 #include "pxr/exec/ef/api.h" 16 #include "pxr/usd/usd/timeCode.h" 21 PXR_NAMESPACE_OPEN_SCOPE
57 _splineFlags(splineFlags)
101 return _timeCode == rhs._timeCode
102 && _splineFlags == rhs._splineFlags;
107 bool operator!=(
const EfTime &rhs)
const {
108 return !(*
this == rhs);
123 return _timeCode < rhs._timeCode;
126 return _timeCode < rhs._timeCode ||
127 (_timeCode == rhs._timeCode && _splineFlags < rhs._splineFlags);
130 bool operator<=(
const EfTime &rhs)
const {
131 return !(rhs < *
this);
134 bool operator>(
const EfTime &rhs)
const {
138 bool operator>=(
const EfTime &rhs)
const {
139 return !(*
this < rhs);
144 template <
class HashState>
146 h.Append(t._timeCode);
148 h.Append(t._splineFlags);
172 PXR_NAMESPACE_CLOSE_SCOPE
void SetSplineEvaluationFlags(SplineEvaluationFlags flags)
Sets the spline evaluation flags that will be used during evaluation.
uint8_t SplineEvaluationFlags
Data type for storing app-specific spline evaluation flags.
EfTime()
A default constructed EfTime is set to the default frame value.
void SetTimeCode(const UsdTimeCode timeCode)
Sets the time code to timeCode.
SplineEvaluationFlags GetSplineEvaluationFlags() const
Returns the spline evaluation flags that will be used during evaluation.
A class that represents a point in time for execution.
EfTime(const UsdTimeCode timeCode, SplineEvaluationFlags splineFlags=0)
Constructs an EfTime object for a specific frame with an optional evaluation location and set of spli...
EF_API std::string GetAsString() const
Returns this object as string.
bool operator<(const EfTime &rhs) const
Returns true if *this < rhs.
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
friend void TfHashAppend(HashState &h, const EfTime &t)
Provides a hash function for EfTime.
bool operator==(const EfTime &rhs) const
Returns true if *this == rhs.
EF_API std::ostream & operator<<(std::ostream &os, const EfTime &time)
Output an EfTime.
bool IsDefault() const
Return true if this time represents the 'default' sentinel value, false otherwise.
const UsdTimeCode GetTimeCode() const
Returns the time code.