Single registration point for all plugins in an application. It is used to find plugin implementations during engine deserialization. Internally, the plugin registry is considered to be a singleton so all plugins in an application are part of the same global registry. Note that the plugin registry is only supported for plugins of type IPluginV2 and should also have a corresponding IPluginCreator implementation.
More...
|
virtual TRT_DEPRECATED bool | registerCreator (IPluginCreator &creator, AsciiChar const *const pluginNamespace) noexcept=0 |
| Register a plugin creator implementing IPluginCreator. Returns false if any plugin creator with the same name, version or namespace is already registered. More...
|
|
virtual TRT_DEPRECATED IPluginCreator *const * | getPluginCreatorList (int32_t *const numCreators) const noexcept=0 |
| Return all the registered plugin creators and the number of registered plugin creators. Returns nullptr if none found. More...
|
|
virtual TRT_DEPRECATED IPluginCreator * | getPluginCreator (AsciiChar const *const pluginName, AsciiChar const *const pluginVersion, AsciiChar const *const pluginNamespace="") noexcept=0 |
| Return plugin creator based on plugin name, version, and namespace associated with plugin during network creation. More...
|
|
virtual void | setErrorRecorder (IErrorRecorder *const recorder) noexcept=0 |
| Set the ErrorRecorder for this interface. More...
|
|
virtual IErrorRecorder * | getErrorRecorder () const noexcept=0 |
| Get the ErrorRecorder assigned to this interface. More...
|
|
virtual TRT_DEPRECATED bool | deregisterCreator (IPluginCreator const &creator) noexcept=0 |
| Deregister a previously registered plugin creator implementing IPluginCreator. More...
|
|
virtual bool | isParentSearchEnabled () const =0 |
| Return whether the parent registry will be searched if a plugin is not found in this registry default: true. More...
|
|
virtual void | setParentSearchEnabled (bool const enabled)=0 |
| Set whether the parent registry will be searched if a plugin is not found in this registry. More...
|
|
virtual PluginLibraryHandle | loadLibrary (AsciiChar const *pluginPath) noexcept=0 |
| Load and register a shared library of plugins. More...
|
|
virtual void | deregisterLibrary (PluginLibraryHandle handle) noexcept=0 |
| Deregister plugins associated with a library. Any resources acquired when the library was loaded will be released. More...
|
|
virtual bool | registerCreator (IPluginCreatorInterface &creator, AsciiChar const *const pluginNamespace) noexcept=0 |
| Register a plugin creator. Returns false if a plugin creator with the same type is already registered. More...
|
|
virtual IPluginCreatorInterface *const * | getAllCreators (int32_t *const numCreators) const noexcept=0 |
| Return all registered plugin creators. Returns nullptr if none found. More...
|
|
virtual IPluginCreatorInterface * | getCreator (AsciiChar const *const pluginName, AsciiChar const *const pluginVersion, AsciiChar const *const pluginNamespace="") noexcept=0 |
| Return a registered plugin creator based on plugin name, version, and namespace associated with the plugin during network creation. More...
|
|
virtual bool | deregisterCreator (IPluginCreatorInterface const &creator) noexcept=0 |
| Deregister a previously registered plugin creator. More...
|
|
virtual IPluginResource * | acquirePluginResource (AsciiChar const *key, IPluginResource *resource) noexcept=0 |
| Get a plugin resource. More...
|
|
virtual int32_t | releasePluginResource (AsciiChar const *key) noexcept=0 |
| Decrement reference count for the resource with this key If reference count goes to zero after decrement, release() will be invoked on the resource, the key will be deregistered and the resource object will be deleted. More...
|
|
Single registration point for all plugins in an application. It is used to find plugin implementations during engine deserialization. Internally, the plugin registry is considered to be a singleton so all plugins in an application are part of the same global registry. Note that the plugin registry is only supported for plugins of type IPluginV2 and should also have a corresponding IPluginCreator implementation.
- See also
- IPluginV2 and IPluginCreator
- Warning
- Do not inherit from this class, as doing so will break forward-compatibility of the API and ABI.
-
In the automotive safety context, be sure to call IPluginRegistry::setErrorRecorder() to register an error recorder with the registry before using other methods in the registry.