24 #ifndef PXR_USD_SDF_IDENTITY_H
25 #define PXR_USD_SDF_IDENTITY_H
37 class Sdf_IdRegistryImpl;
53 const SdfLayerHandle &
GetLayer()
const;
69 : _refCount(0), _path(path), _regImpl(regImpl) {}
90 Sdf_IdRegistryImpl *reg = p->_regImpl;
91 if (--p->_refCount == 0) {
93 Sdf_Identity::_UnregisterOrDelete(reg,
self);
126 void _UnregisterOrDelete();
130 const SdfLayerHandle _layer;
133 const std::unique_ptr<Sdf_IdRegistryImpl> _impl;
138 #endif // PXR_USD_SDF_IDENTITY_H
GLsizei const GLchar *const * path
void intrusive_ptr_release(PXR_NS::Sdf_Identity *p)
hboost::intrusive_ptr< Sdf_Identity > Sdf_IdentityRefPtr
friend void intrusive_ptr_release(Sdf_Identity *)
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.
void intrusive_ptr_add_ref(PXR_NS::Sdf_Identity *p)
const SdfLayerHandle & GetLayer() const
Returns the layer that owns this registry.
friend class Sdf_IdRegistryImpl
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
SDF_DECLARE_HANDLES(SdfLayer)
friend void intrusive_ptr_add_ref(Sdf_Identity *)
const SdfPath & GetPath() const
Returns the path that this identity refers to.
friend class Sdf_IdRegistryImpl