TensorRT 11.2.1
nvinfer1::v_1_0::ILoggerFinder Class Referenceabstract

A virtual base class to find a logger. Allows a plugin to find an instance of a logger if it needs to emit a log message. A pointer to an instance of this class is passed to a plugin shared library on initialization when that plugin is serialized as part of a version-compatible plan. See the plugin chapter in the developer guide for details. More...

#include <NvInferRuntime.h>

Inheritance diagram for nvinfer1::v_1_0::ILoggerFinder:
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 ILoggerfindLogger ()=0
 Get the logger used by the engine or execution context which called the plugin method. More...
 
- 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
 

Protected Member Functions

 ~ILoggerFinder () override=default
 Protected: TRT owns ILoggerFinder instances and passes non-owning pointers to plugins. More...
 
- Protected Member Functions inherited from nvinfer1::IVersionedInterface
 IVersionedInterface ()=default
 
 IVersionedInterface (IVersionedInterface const &)=default
 
 IVersionedInterface (IVersionedInterface &&)=default
 
IVersionedInterfaceoperator= (IVersionedInterface const &) &=default
 
IVersionedInterfaceoperator= (IVersionedInterface &&) &=default
 

Detailed Description

A virtual base class to find a logger. Allows a plugin to find an instance of a logger if it needs to emit a log message. A pointer to an instance of this class is passed to a plugin shared library on initialization when that plugin is serialized as part of a version-compatible plan. See the plugin chapter in the developer guide for details.

Constructor & Destructor Documentation

◆ ~ILoggerFinder()

nvinfer1::v_1_0::ILoggerFinder::~ILoggerFinder ( )
overrideprotecteddefault

Protected: TRT owns ILoggerFinder instances and passes non-owning pointers to plugins.

Member Function Documentation

◆ findLogger()

virtual ILogger * nvinfer1::v_1_0::ILoggerFinder::findLogger ( )
pure virtual

Get the logger used by the engine or execution context which called the plugin method.

Warning
Must be called from the thread in which the plugin method was called.
Returns
A pointer to the logger.

◆ getInterfaceInfo()

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

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

Implements nvinfer1::IVersionedInterface.


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