7 #ifndef PXR_USD_SDF_REFERENCE_H
8 #define PXR_USD_SDF_REFERENCE_H
67 const std::string &assetPath = std::string(),
103 _primPath = primPath;
115 _layerOffset = layerOffset;
127 _customData = customData;
138 _customData.
swap(customData);
161 return !(*
this == rhs);
175 return !(rhs < *
this);
180 return !(*
this < rhs);
187 bool operator()(
const SdfReference &lhs,
const SdfReference &rhs)
const {
188 return lhs._assetPath == rhs._assetPath &&
189 lhs._primPath == rhs._primPath;
197 bool operator()(
const SdfReference &lhs,
const SdfReference &rhs)
const {
198 return lhs._assetPath < rhs._assetPath ||
199 (lhs._assetPath == rhs._assetPath &&
200 lhs._primPath < rhs._primPath);
206 std::string _assetPath;
238 #endif // PXR_USD_SDF_REFERENCE_H
bool operator>=(const SdfReference &rhs) const
const VtDictionary & GetCustomData() const
bool operator()(const SdfReference &lhs, const SdfReference &rhs) const
SDF_API std::ostream & operator<<(std::ostream &out, const SdfReference &reference)
Writes the string representation of SdfReference to out.
SDF_API bool IsInternal() const
GLsizei const GLfloat * value
void SetPrimPath(const SdfPath &primPath)
const std::string & GetAssetPath() const
bool operator()(const SdfReference &lhs, const SdfReference &rhs) const
void SetAssetPath(const std::string &assetPath)
void SetLayerOffset(const SdfLayerOffset &layerOffset)
bool operator<=(const SdfReference &rhs) const
const std::string & GetAssetPath() const &
bool operator!=(const SdfReference &rhs) const
GLuint const GLchar * name
friend size_t hash_value(const SdfReference &r)
SDF_API SdfReference(const std::string &assetPath=std::string(), const SdfPath &primPath=SdfPath(), const SdfLayerOffset &layerOffset=SdfLayerOffset(), const VtDictionary &customData=VtDictionary())
static size_t Combine(Args &&...args)
Produce a hash code by combining the hash codes of several objects.
std::vector< SdfReference > SdfReferenceVector
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
const SdfPath & GetPrimPath() const
SDF_API bool operator<(const SdfReference &rhs) const
const SdfLayerOffset & GetLayerOffset() const
void SetCustomData(const VtDictionary &customData)
#define PXR_NAMESPACE_CLOSE_SCOPE
SDF_API bool operator==(const SdfReference &rhs) const
Returns whether this reference equals rhs.
SDF_API int SdfFindReferenceByIdentity(const SdfReferenceVector &references, const SdfReference &referenceId)
VT_API void swap(VtDictionary &dict)
Swaps the contents of two VtDictionaries.
that also have some descendant prim *whose name begins with which in turn has a child named baz where *the predicate and *a name There is also one special expression reference
bool operator>(const SdfReference &rhs) const
void SwapCustomData(VtDictionary &customData)
Swaps the custom data dictionary for this reference.