24 #ifndef PXR_USD_SDF_TIME_CODE_H
25 #define PXR_USD_SDF_TIME_CODE_H
62 {
return _time == rhs._time; }
64 {
return _time != rhs._time; }
66 {
return _time < rhs._time; }
68 {
return _time > rhs._time; }
70 {
return _time <= rhs._time; }
72 {
return _time >= rhs._time; }
84 explicit constexpr
operator double() const noexcept {
return _time;}
88 return std::hash<double>()(_time);
172 #endif // PXR_USD_SDF_TIME_CODE_H
Mat3< typename promote< S, T >::type > operator*(S scalar, const Mat3< T > &m)
Multiply each element of the given matrix by scalar and return the result.
constexpr bool operator>(double time, const SdfTimeCode &timeCode) noexcept
Stream insertion operator for the string representation of this time code.
constexpr bool operator==(const SdfTimeCode &rhs) const noexcept
Explicit conversion to double.
constexpr double GetValue() const noexcept
Return the time value.
void swap(UT::ArraySet< Key, MULTI, MAX_LOAD_FACTOR_256, Clearer, Hash, KeyEqual > &a, UT::ArraySet< Key, MULTI, MAX_LOAD_FACTOR_256, Clearer, Hash, KeyEqual > &b)
friend size_t hash_value(const SdfTimeCode &ap)
Explicit conversion to double.
GT_API const UT_StringHolder time
Mat3< typename promote< T0, T1 >::type > operator+(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Add corresponding elements of m0 and m1 and return the result.
friend void swap(SdfTimeCode &lhs, SdfTimeCode &rhs)
constexpr SdfTimeCode operator-(const SdfTimeCode &rhs) const noexcept
Explicit conversion to double.
constexpr bool operator>(const SdfTimeCode &rhs) const noexcept
Explicit conversion to double.
constexpr SdfTimeCode operator+(const SdfTimeCode &rhs) const noexcept
Explicit conversion to double.
constexpr SdfTimeCode operator/(double time, const SdfTimeCode &timeCode) noexcept
Stream insertion operator for the string representation of this time code.
constexpr SdfTimeCode operator/(const SdfTimeCode &rhs) const noexcept
Explicit conversion to double.
Mat3< typename promote< T0, T1 >::type > operator-(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Subtract corresponding elements of m0 and m1 and return the result.
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
size_t GetHash() const
Hash function.
constexpr bool operator>=(double time, const SdfTimeCode &timeCode) noexcept
Stream insertion operator for the string representation of this time code.
constexpr bool operator!=(const SdfTimeCode &rhs) const noexcept
Explicit conversion to double.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
constexpr bool operator<(double time, const SdfTimeCode &timeCode) noexcept
Stream insertion operator for the string representation of this time code.
constexpr bool operator<=(double time, const SdfTimeCode &timeCode) noexcept
Stream insertion operator for the string representation of this time code.
#define PXR_NAMESPACE_CLOSE_SCOPE
constexpr SdfTimeCode(double time=0.0) noexcept
constexpr bool operator>=(const SdfTimeCode &rhs) const noexcept
Explicit conversion to double.
constexpr bool operator<(const SdfTimeCode &rhs) const noexcept
Explicit conversion to double.
size_t operator()(const SdfTimeCode &ap) const
SDF_API std::ostream & operator<<(std::ostream &out, const SdfTimeCode &ap)
Stream insertion operator for the string representation of this time code.
constexpr SdfTimeCode operator*(const SdfTimeCode &rhs) const noexcept
Explicit conversion to double.
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
constexpr bool operator<=(const SdfTimeCode &rhs) const noexcept
Explicit conversion to double.