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"
21PXR_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);
172PXR_NAMESPACE_CLOSE_SCOPE
A class that represents a point in time for execution.
bool operator==(const EfTime &rhs) const
Returns true if *this == rhs.
uint8_t SplineEvaluationFlags
Data type for storing app-specific spline evaluation flags.
friend void TfHashAppend(HashState &h, const EfTime &t)
Provides a hash function for EfTime.
SplineEvaluationFlags GetSplineEvaluationFlags() const
Returns the spline evaluation flags that will be used during evaluation.
EfTime()
A default constructed EfTime is set to the default frame value.
EfTime(const UsdTimeCode timeCode, SplineEvaluationFlags splineFlags=0)
Constructs an EfTime object for a specific frame with an optional evaluation location and set of spli...
const UsdTimeCode GetTimeCode() const
Returns the time code.
EF_API std::string GetAsString() const
Returns this object as string.
void SetSplineEvaluationFlags(SplineEvaluationFlags flags)
Sets the spline evaluation flags that will be used during evaluation.
bool operator<(const EfTime &rhs) const
Returns true if *this < rhs.
void SetTimeCode(const UsdTimeCode timeCode)
Sets the time code to timeCode.
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
bool IsDefault() const
Return true if this time represents the 'default' sentinel value, false otherwise.
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].