TensorRT 10.0.1
nvinfer1::v_1_0::IPluginResource Class Referenceabstract

#include <NvInferRuntimeBase.h>

Inheritance diagram for nvinfer1::v_1_0::IPluginResource:
nvinfer1::IVersionedInterface

Public Member Functions

InterfaceInfo getInterfaceInfo () const noexcept override
 Return version information associated with this interface. Applications must not override this method. More...
 
virtual int32_t release () noexcept=0
 Free the underlying resource. More...
 
virtual IPluginResourceclone () noexcept=0
 Clone the resource object. More...
 
 ~IPluginResource () noexcept override=default
 
 IPluginResource ()=default
 
 IPluginResource (IPluginResource const &)=default
 
 IPluginResource (IPluginResource &&)=default
 
IPluginResourceoperator= (IPluginResource const &) &=default
 
IPluginResourceoperator= (IPluginResource &&) &=default
 
- Public Member Functions inherited from nvinfer1::IVersionedInterface
virtual APILanguage getAPILanguage () const noexcept
 The language used to build the implementation of this Interface. More...
 
virtual ~IVersionedInterface () noexcept=default
 

Additional Inherited Members

- Protected Member Functions inherited from nvinfer1::IVersionedInterface
 IVersionedInterface ()=default
 
 IVersionedInterface (IVersionedInterface const &)=default
 
 IVersionedInterface (IVersionedInterface &&)=default
 
IVersionedInterfaceoperator= (IVersionedInterface const &) &=default
 
IVersionedInterfaceoperator= (IVersionedInterface &&) &=default
 

Constructor & Destructor Documentation

◆ ~IPluginResource()

nvinfer1::v_1_0::IPluginResource::~IPluginResource ( )
overridedefaultnoexcept

◆ IPluginResource() [1/3]

nvinfer1::v_1_0::IPluginResource::IPluginResource ( )
default

◆ IPluginResource() [2/3]

nvinfer1::v_1_0::IPluginResource::IPluginResource ( IPluginResource const &  )
default

◆ IPluginResource() [3/3]

nvinfer1::v_1_0::IPluginResource::IPluginResource ( IPluginResource &&  )
default

Member Function Documentation

◆ clone()

virtual IPluginResource * nvinfer1::v_1_0::IPluginResource::clone ( )
pure virtualnoexcept

Clone the resource object.

Note
Resource initialization (if any) may be skipped for non-cloned objects since only clones will be registered by TensorRT
Returns
Pointer to cloned object. nullptr if there was an issue.


Usage considerations

  • Allowed context for the API call
    • Thread-safe: Yes; this method is required to be thread-safe and may be called from multiple threads.

◆ getInterfaceInfo()

InterfaceInfo nvinfer1::v_1_0::IPluginResource::getInterfaceInfo ( ) const
inlineoverridevirtualnoexcept

Return version information associated with this interface. Applications must not override this method.

Implements nvinfer1::IVersionedInterface.

◆ operator=() [1/2]

IPluginResource & nvinfer1::v_1_0::IPluginResource::operator= ( IPluginResource &&  ) &
default

◆ operator=() [2/2]

IPluginResource & nvinfer1::v_1_0::IPluginResource::operator= ( IPluginResource const &  ) &
default

◆ release()

virtual int32_t nvinfer1::v_1_0::IPluginResource::release ( )
pure virtualnoexcept

Free the underlying resource.

This will only be called for IPluginResource objects that were produced from IPluginResource::clone()

The IPluginResource object on which release() is called must still be in a clone-able state after release() returns

Returns
0 for success, else non-zero
Usage considerations
  • Allowed context for the API call
    • Thread-safe: No; this method is not required to be thread-safe

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

  Copyright © 2024 NVIDIA Corporation
  Privacy Policy | Manage My Privacy | Do Not Sell or Share My Data | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact