24 #ifndef PXR_USD_SDF_VALUE_TYPE_NAME_H
25 #define PXR_USD_SDF_VALUE_TYPE_NAME_H
40 class Sdf_ValueTypeImpl;
53 :
size(2) {
d[0] =
s[0];
d[1] =
s[1]; }
58 return !(*
this == rhs);
151 bool operator==(
const SdfValueTypeName& rhs)
const;
153 return !(*
this == rhs);
161 return !(*
this == rhs);
169 return !(*
this == rhs);
178 return !(rhs == lhs);
187 return !(rhs == lhs);
196 explicit operator bool()
const
214 bool _IsEmpty()
const;
217 const Sdf_ValueTypeImpl* _impl;
238 #endif // PXR_USD_SDF_VALUE_TYPE_NAME_H
friend bool operator==(const std::string &lhs, const SdfValueTypeName &rhs)
SDF_API const VtValue & GetDefaultValue() const
Returns the default value for the type.
bool operator!=(const SdfValueTypeName &rhs) const
bool operator!=(const SdfTupleDimensions &rhs) const
friend bool operator==(const TfToken &lhs, const SdfValueTypeName &rhs)
SdfTupleDimensions(size_t m, size_t n)
SDF_API const std::string & GetCPPTypeName() const
GLsizei const GLchar *const * string
bool operator!=(const TfToken &rhs) const
size_t hash_value(const SdfValueTypeName &typeName)
SDF_API SdfValueTypeName GetScalarType() const
SDF_API SdfTupleDimensions GetDimensions() const
Returns the dimensions of the scalar value, e.g. 3 for a 3D point.
SDF_API std::ostream & operator<<(std::ostream &, const SdfValueTypeName &typeName)
SdfTupleDimensions(const size_t(&s)[2])
SDF_API bool IsScalar() const
SDF_API TfToken GetAsToken() const
SDF_API bool IsArray() const
friend bool operator!=(const TfToken &lhs, const SdfValueTypeName &rhs)
SDF_API SdfValueTypeName()
Constructs an invalid type name.
SDF_API const TfEnum & GetDefaultUnit() const
Returns the default unit enum for the type.
SDF_API const TfToken & GetRole() const
Returns the type's role.
friend bool operator!=(const std::string &lhs, const SdfValueTypeName &rhs)
SDF_API bool operator==(const SdfValueTypeName &rhs) const
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Functor for hashing a SdfValueTypeName.
#define PXR_NAMESPACE_CLOSE_SCOPE
SDF_API std::vector< TfToken > GetAliasesAsTokens() const
friend class Sdf_ValueTypeRegistry
size_t operator()(const SdfValueTypeName &x) const
friend struct Sdf_ValueTypePrivate
bool operator!=(const std::string &rhs) const
SDF_API const TfType & GetType() const
Returns the TfType of the type.
SDF_API SdfValueTypeName GetArrayType() const
SdfTupleDimensions(size_t m)
SDF_API size_t GetHash() const
Returns a hash value for this type name.
SDF_API bool operator==(const SdfTupleDimensions &rhs) const