7#ifndef PXR_USD_SDF_VALUE_TYPE_NAME_H
8#define PXR_USD_SDF_VALUE_TYPE_NAME_H
11#include "pxr/usd/sdf/api.h"
18PXR_NAMESPACE_OPEN_SCOPE
23class Sdf_ValueTypeImpl;
36 : size(2) { d[0] = s[0]; d[1] = s[1]; }
41 return !(*
this == rhs);
136 return !(*
this == rhs);
143 bool operator!=(
const std::string& rhs)
const {
144 return !(*
this == rhs);
151 bool operator!=(
const TfToken& rhs)
const {
152 return !(*
this == rhs);
161 return !(rhs == lhs);
170 return !(rhs == lhs);
179 explicit operator bool()
const
190 friend class Sdf_ValueTypeRegistry;
191 friend struct Sdf_ValueTypePrivate;
197 bool _IsEmpty()
const;
200 const Sdf_ValueTypeImpl* _impl;
219PXR_NAMESPACE_CLOSE_SCOPE
Represents a value type name, i.e.
SDF_API bool IsArray() const
Returns true iff this type is an array.
SDF_API bool operator==(const std::string &rhs) const
Returns true if this type name is equal to rhs.
SDF_API const TfEnum & GetDefaultUnit() const
Returns the default unit enum for the type.
SDF_API SdfValueTypeName GetArrayType() const
Returns the array version of this type name if it's an scalar type name, otherwise returns this type ...
SDF_API bool operator==(const SdfValueTypeName &rhs) const
Returns true if this type name is equal to rhs.
SDF_API const TfType & GetType() const
Returns the TfType of the type.
SDF_API const VtValue & GetDefaultValue() const
Returns the default value for the type.
SDF_API SdfTupleDimensions GetDimensions() const
Returns the dimensions of the scalar value, e.g. 3 for a 3D point.
SDF_API const TfToken & GetRole() const
Returns the type's role.
SDF_API bool IsScalar() const
Returns true iff this type is a scalar.
SDF_API TfToken GetAsToken() const
Returns the type name as a token.
SDF_API std::vector< TfToken > GetAliasesAsTokens() const
Returns all aliases of the type name as tokens.
SDF_API const std::string & GetCPPTypeName() const
Returns the C++ type name for this type.
SDF_API SdfValueTypeName GetScalarType() const
Returns the scalar version of this type name if it's an array type name, otherwise returns this type ...
SDF_API size_t GetHash() const
Returns a hash value for this type name.
SDF_API bool operator==(const TfToken &rhs) const
Returns true if this type name is equal to rhs.
SDF_API SdfValueTypeName()
Constructs an invalid type name.
An enum class that records both enum type and enum value.
Token for efficient comparison, assignment, and hashing of known strings.
TfType represents a dynamic runtime type.
Provides a container which may hold any type, and provides introspection and iteration over array typ...
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].
Represents the shape of a value type (or that of an element in an array).
Functor for hashing a SdfValueTypeName.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...