TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
nvinfer1::IHostMemory Class Referenceabstract

Class to handle library allocated memory that is accessible to the user. More...

Inheritance diagram for nvinfer1::IHostMemory:

Public Member Functions

virtual void * data () const noexcept=0
 A pointer to the raw data that is owned by the library. More...
 
virtual std::size_t size () const noexcept=0
 The size in bytes of the data that was allocated. More...
 
virtual DataType type () const noexcept=0
 The type of the memory that was allocated. More...
 
virtual void destroy () noexcept=0
 Destroy the allocated memory. More...
 

Protected Member Functions

virtual ~IHostMemory ()
 

Detailed Description

Class to handle library allocated memory that is accessible to the user.

The memory allocated via the host memory object is owned by the library and will be de-allocated when the destroy method is called.

Warning
Do not inherit from this class, as doing so will break forward-compatibility of the API and ABI.

Constructor & Destructor Documentation

◆ ~IHostMemory()

virtual nvinfer1::IHostMemory::~IHostMemory ( )
inlineprotectedvirtual

Member Function Documentation

◆ data()

virtual void* nvinfer1::IHostMemory::data ( ) const
pure virtualnoexcept

A pointer to the raw data that is owned by the library.

Implemented in samplesCommon::HostMemory.

Here is the caller graph for this function:

◆ size()

virtual std::size_t nvinfer1::IHostMemory::size ( ) const
pure virtualnoexcept

The size in bytes of the data that was allocated.

Implemented in samplesCommon::HostMemory.

Here is the caller graph for this function:

◆ type()

virtual DataType nvinfer1::IHostMemory::type ( ) const
pure virtualnoexcept

The type of the memory that was allocated.

Implemented in samplesCommon::HostMemory.

◆ destroy()

virtual void nvinfer1::IHostMemory::destroy ( )
pure virtualnoexcept

Destroy the allocated memory.

Implemented in samplesCommon::TypedHostMemory< ElemType, dataType >.

Here is the caller graph for this function:

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