usdrt::SdfValueTypeName

Defined in usdrt/scenegraph/usd/sdf/valueTypeName.h

class usdrt::SdfValueTypeName

Public Functions

inline SdfValueTypeName()

Constructs an invalid type name.

inline SdfValueTypeName(const Type &type)
inline SdfValueTypeName(BaseDataType baseType, uint8_t componentCount = 1, uint8_t arrayDepth = 0, AttributeRole role = AttributeRole::eNone)
inline operator carb::flatcache::TypeC() const
inline carb::flatcache::TypeC GetAsTypeC() const
inline TfToken GetAsToken() const

Returns the type name as a token. This should not be used for comparison purposes.

inline std::string GetAsString() const

Returns the type name as a string.

inline bool operator==(const SdfValueTypeName &rhs) const

Returns true if this type name is equal to rhs. Aliases compare equal.

inline bool operator!=(const SdfValueTypeName &rhs) const

Returns true if this type name is not equal to rhs.

inline SdfValueTypeName GetScalarType() const

Returns the scalar version of this type name if it’s an array type name, otherwise returns this type name. If there is no scalar type name then this returns the invalid type name.

inline SdfValueTypeName GetArrayType() const

Returns the array version of this type name if it’s an scalar type name, otherwise returns this type name. If there is no array type name then this returns the invalid type name.

inline bool IsScalar() const

Returns true iff this type is a scalar. The invalid type is considered neither scalar nor array.

inline bool IsArray() const

Returns true iff this type is an array. The invalid type is considered neither scalar nor array.