24 #ifndef PXR_USD_SDF_REFERENCE_H
25 #define PXR_USD_SDF_REFERENCE_H
120 _primPath = primPath;
132 _layerOffset = layerOffset;
144 _customData = customData;
155 _customData.
swap(customData);
178 return !(*
this == rhs);
192 return !(rhs < *
this);
197 return !(*
this < rhs);
204 bool operator()(
const SdfReference &lhs,
const SdfReference &rhs)
const {
205 return lhs._assetPath == rhs._assetPath &&
206 lhs._primPath == rhs._primPath;
214 bool operator()(
const SdfReference &lhs,
const SdfReference &rhs)
const {
215 return lhs._assetPath < rhs._assetPath ||
216 (lhs._assetPath == rhs._assetPath &&
217 lhs._primPath < rhs._primPath);
255 #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 GLchar *const * string
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 &
Return the asset path.
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.