Go to the source code of this file.
|
SDF_API int | SdfFindReferenceByIdentity (const SdfReferenceVector &references, const SdfReference &referenceId) |
| Convenience function to find the index of the reference in references that has the same identity as the given reference referenceId.
|
|
SDF_API std::ostream & | operator<< (std::ostream &out, const SdfReference &reference) |
| Writes the string representation of SdfReference to out.
|
|
◆ SdfReferenceVector
◆ operator<<()
SDF_API std::ostream & operator<< |
( |
std::ostream & |
out, |
|
|
const SdfReference & |
reference |
|
) |
| |
◆ SdfFindReferenceByIdentity()
SDF_API int SdfFindReferenceByIdentity |
( |
const SdfReferenceVector & |
references, |
|
|
const SdfReference & |
referenceId |
|
) |
| |
Convenience function to find the index of the reference in references that has the same identity as the given reference referenceId.
A reference's identity is given by its asset path and prim path alone (i.e. the layer offset and custom data is ignored).
If no reference with the same identity exists in reference, -1 is returned. If more than one reference with the same identity exist in references the index of the first one is returned.