18#ifndef NV_INFER_RUNTIME_COMMON_H
19#define NV_INFER_RUNTIME_COMMON_H
31#define NV_INFER_INTERNAL_INCLUDE 1
33#undef NV_INFER_INTERNAL_INCLUDE
184 AsciiChar const* const pluginNamespace = "") noexcept = 0;
Single registration point for all plugins in an application. It is used to find plugin implementation...
Definition: NvInferRuntimeCommon.h:56
virtual IErrorRecorder * getErrorRecorder() const noexcept=0
Get the ErrorRecorder assigned to this interface.
virtual PluginLibraryHandle loadLibrary(AsciiChar const *pluginPath) noexcept=0
Load and register a shared library of plugins.
void * PluginLibraryHandle
Pointer for plugin library handle.
Definition: NvInferRuntimeCommon.h:61
virtual IPluginCreatorInterface *const * getAllCreatorsRecursive(int32_t *const numCreators) noexcept=0
Return all registered plugin creators by searching starting from the current registry and following p...
virtual bool isParentSearchEnabled() const =0
Return whether the parent registry will be searched if a plugin is not found in this registry default...
virtual IPluginCreatorInterface *const * getAllCreators(int32_t *const numCreators) const noexcept=0
Return all registered plugin creators. Returns nullptr if none found.
virtual void setErrorRecorder(IErrorRecorder *const recorder) noexcept=0
Set the ErrorRecorder for this interface.
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 decrem...
virtual void setParentSearchEnabled(bool const enabled)=0
Set whether the parent registry will be searched if a plugin is not found in this registry.
virtual void deregisterLibrary(PluginLibraryHandle handle) noexcept=0
Deregister plugins associated with a library. Any resources acquired when the library was loaded will...
virtual bool deregisterCreator(IPluginCreatorInterface const &creator) noexcept=0
Deregister a previously registered plugin creator.
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...
virtual ~IPluginRegistry() noexcept=0
virtual IPluginResource * acquirePluginResource(AsciiChar const *key, IPluginResource *resource) noexcept=0
Get a plugin resource.
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 p...
Definition: NvInferRuntimeBase.h:419
Definition: NvInferPluginBase.h:193
Definition: NvInferPluginBase.h:145
The TensorRT API version 1 namespace.
Definition: NvInferSafePlugin.h:33
char_t AsciiChar
Definition: NvInferRuntimeBase.h:116