7 #ifndef PXR_USD_SDF_IDENTITY_H
8 #define PXR_USD_SDF_IDENTITY_H
20 class Sdf_IdRegistryImpl;
36 const SdfLayerHandle &
GetLayer()
const;
52 : _refCount(0), _path(
path), _regImpl(regImpl) {}
74 Sdf_IdRegistryImpl *reg = p->_regImpl;
75 if (--p->_refCount == 0) {
77 Sdf_Identity::_UnregisterOrDelete(reg,
self);
110 void _UnregisterOrDelete();
114 const SdfLayerHandle _layer;
117 const std::unique_ptr<Sdf_IdRegistryImpl> _impl;
122 #endif // PXR_USD_SDF_IDENTITY_H
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
GLsizei const GLchar *const * path
GLenum GLuint GLint GLint layer
Sdf_IdentityRefPtr Identify(const SdfPath &path)
SDF_API const SdfLayerHandle & GetLayer() const
Returns the layer that this identity refers to.
void MoveIdentity(const SdfPath &oldPath, const SdfPath &newPath)
Update identity in response to a namespace edit.
const SdfLayerHandle & GetLayer() const
Returns the layer that owns this registry.
friend void TfDelegatedCountDecrement(Sdf_Identity *) noexcept
friend void TfDelegatedCountIncrement(Sdf_Identity *)
void TfDelegatedCountDecrement(PXR_NS::Sdf_Identity *p) noexcept
friend class Sdf_IdRegistryImpl
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
SDF_DECLARE_HANDLES(SdfLayer)
const SdfPath & GetPath() const
Returns the path that this identity refers to.
void TfDelegatedCountIncrement(PXR_NS::Sdf_Identity *p)
friend class Sdf_IdRegistryImpl