TensorRT  5.1.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
nvinfer1::IPluginRegistry Class Referenceabstract

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...

#include <NvInfer.h>

Public Member Functions

virtual bool registerCreator (IPluginCreator &creator, const char *pluginNamespace)=0
 Register a plugin creator. Returns false if one with same type is already registered.
 
virtual IPluginCreator *const * getPluginCreatorList (int *numCreators) const =0
 Return all the registered plugin creators and the number of registered plugin creators. Returns nullptr if none found.
 
virtual IPluginCreatorgetPluginCreator (const char *pluginType, const char *pluginVersion, const char *pluginNamespace="")=0
 Return plugin creator based on plugin type, version and namespace associated with plugin during network creation.
 

Detailed Description

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.

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