@Namespace(value="nvinfer1") @Properties(inherit=nvinfer.class) public class IPluginRegistry extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
IPluginRegistry.PluginLibraryHandle
Pointer for plugin library handle.
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
IPluginRegistry(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
deregisterCreator(IPluginCreator creator)
\brief Deregister a previously registered plugin creator.
|
void |
deregisterLibrary(IPluginRegistry.PluginLibraryHandle handle)
\brief Deregister plugins associated with a library.
|
IErrorRecorder |
getErrorRecorder()
\brief Get the ErrorRecorder assigned to this interface.
|
IPluginCreator |
getPluginCreator(BytePointer pluginName,
BytePointer pluginVersion) |
IPluginCreator |
getPluginCreator(BytePointer pluginName,
BytePointer pluginVersion,
BytePointer pluginNamespace) |
IPluginCreator |
getPluginCreator(String pluginName,
String pluginVersion) |
IPluginCreator |
getPluginCreator(String pluginName,
String pluginVersion,
String pluginNamespace)
\brief Return plugin creator based on plugin name, version, and
namespace associated with plugin during network creation.
|
PointerPointer |
getPluginCreatorList(IntPointer numCreators)
\brief Return all the registered plugin creators and the number of
registered plugin creators.
|
boolean |
isParentSearchEnabled()
\brief Return whether the parent registry will be searched if a plugin is not found in this registry
default: true
|
IPluginRegistry.PluginLibraryHandle |
loadLibrary(BytePointer pluginPath) |
IPluginRegistry.PluginLibraryHandle |
loadLibrary(String pluginPath)
\brief Load and register a shared library of plugins.
|
boolean |
registerCreator(IPluginCreator creator,
BytePointer pluginNamespace) |
boolean |
registerCreator(IPluginCreator creator,
String pluginNamespace)
\brief Register a plugin creator.
|
void |
setErrorRecorder(IErrorRecorder recorder) |
void |
setParentSearchEnabled(boolean enabled)
\brief Set whether the parent registry will be searched if a plugin is not found in this registry.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public IPluginRegistry(Pointer p)
Pointer(Pointer)
.@Cast(value="bool") @NoException(value=true) public boolean registerCreator(@ByRef IPluginCreator creator, String pluginNamespace)
@Cast(value="bool") @NoException(value=true) public boolean registerCreator(@ByRef IPluginCreator creator, @Cast(value="const char*") BytePointer pluginNamespace)
@Cast(value="nvinfer1::IPluginCreator*const*") public PointerPointer getPluginCreatorList(IntPointer numCreators)
@NoException(value=true) public IPluginCreator getPluginCreator(String pluginName, String pluginVersion, String pluginNamespace)
@NoException(value=true) public IPluginCreator getPluginCreator(String pluginName, String pluginVersion)
@NoException(value=true) public IPluginCreator getPluginCreator(@Cast(value="const char*") BytePointer pluginName, @Cast(value="const char*") BytePointer pluginVersion, @Cast(value="const char*") BytePointer pluginNamespace)
@NoException(value=true) public IPluginCreator getPluginCreator(@Cast(value="const char*") BytePointer pluginName, @Cast(value="const char*") BytePointer pluginVersion)
@NoException(value=true) public void setErrorRecorder(IErrorRecorder recorder)
@NoException(value=true) public IErrorRecorder getErrorRecorder()
\usage
- Allowed context for the API call
- Thread-safe: Yes
@Cast(value="bool") @NoException(value=true) public boolean deregisterCreator(@Const @ByRef IPluginCreator creator)
@Cast(value="bool") public boolean isParentSearchEnabled()
setParentSearchEnabled
public void setParentSearchEnabled(@Cast(value="const bool") boolean enabled)
enabled
- The bool variable indicating whether parent search is enabled.isParentSearchEnabled
@NoException(value=true) public IPluginRegistry.PluginLibraryHandle loadLibrary(String pluginPath)
pluginPath
- the plugin library path.@NoException(value=true) public IPluginRegistry.PluginLibraryHandle loadLibrary(@Cast(value="const char*") BytePointer pluginPath)
@NoException(value=true) public void deregisterLibrary(IPluginRegistry.PluginLibraryHandle handle)
handle
- the plugin library handle to deregister.Copyright © 2024. All rights reserved.