HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reference.h File Reference
#include "pxr/pxr.h"
#include "pxr/usd/sdf/api.h"
#include "pxr/usd/sdf/assetPath.h"
#include "pxr/usd/sdf/layerOffset.h"
#include "pxr/usd/sdf/path.h"
#include "pxr/base/tf/hash.h"
#include "pxr/base/vt/dictionary.h"
#include "pxr/base/vt/value.h"
#include <iosfwd>
#include <string>
#include <vector>
+ Include dependency graph for reference.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SdfReference
 
struct  SdfReference::IdentityEqual
 
struct  SdfReference::IdentityLessThan
 

Typedefs

typedef std::vector< SdfReferenceSdfReferenceVector
 

Functions

SDF_API int SdfFindReferenceByIdentity (const SdfReferenceVector &references, const SdfReference &referenceId)
 
SDF_API std::ostream & operator<< (std::ostream &out, const SdfReference &reference)
 Writes the string representation of SdfReference to out. More...
 

Typedef Documentation

typedef std::vector<SdfReference> SdfReferenceVector

Definition at line 44 of file reference.h.

Function Documentation

SDF_API std::ostream& operator<< ( std::ostream &  out,
const SdfReference reference 
)

Writes the string representation of SdfReference to out.

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.