All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdPluginRenderDelegateUniqueHandle Class Referencefinal

A (movable) handle for a render delegate that was created using a a plugin. More...

Public Member Functions

 HdPluginRenderDelegateUniqueHandle (const std::nullptr_t &)
 
HD_API HdPluginRenderDelegateUniqueHandle (HdPluginRenderDelegateUniqueHandle &&)
 Transfer ownership. More...
 
HD_API
HdPluginRenderDelegateUniqueHandle
operator= (HdPluginRenderDelegateUniqueHandle &&)
 Transfer ownership. More...
 
HD_API
HdPluginRenderDelegateUniqueHandle
operator= (const std::nullptr_t &)
 
HdRenderDelegate * Get () const
 Get render delegate. More...
 
HdRenderDelegate * operator-> () const
 
HdRenderDelegate & operator* () const
 
 operator bool () const
 Is the wrapped HdRenderDelegate valid? More...
 
HD_API TfToken GetPluginId () const
 Get the id of the plugin used to create render delegate. More...
 

Friends

class HdRendererPlugin
 

Detailed Description

A (movable) handle for a render delegate that was created using a a plugin.

The handle owns the render delegate (render delegate is destroyed when handle is dropped). The handle also can be queried what plugin was used to create the render delegate and ensures the plugin is kept alive until the render delegate is destroyed. In other words, the handle can be used just like a std::unique_ptr.

Definition at line 47 of file pluginRenderDelegateUniqueHandle.h.

Constructor & Destructor Documentation

Member Function Documentation

HdRenderDelegate* Get ( ) const
inline

Get render delegate.

Definition at line 71 of file pluginRenderDelegateUniqueHandle.h.

HD_API TfToken GetPluginId ( ) const

Get the id of the plugin used to create render delegate.

operator bool ( ) const
inlineexplicit

Is the wrapped HdRenderDelegate valid?

Definition at line 77 of file pluginRenderDelegateUniqueHandle.h.

Transfer ownership.


The documentation for this class was generated from the following file: