TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
samplesCommon::HostMemory Class Referenceabstract
Inheritance diagram for samplesCommon::HostMemory:
Collaboration diagram for samplesCommon::HostMemory:

Public Member Functions

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

Protected Member Functions

 HostMemory (std::size_t size, DataType type)
 

Protected Attributes

void * mData
 
std::size_t mSize
 
DataType mType
 

Constructor & Destructor Documentation

◆ HostMemory() [1/2]

samplesCommon::HostMemory::HostMemory ( )
delete

◆ HostMemory() [2/2]

samplesCommon::HostMemory::HostMemory ( std::size_t  size,
DataType  type 
)
inlineprotected

Member Function Documentation

◆ data()

void* samplesCommon::HostMemory::data ( ) const
inlineoverridevirtualnoexcept

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

Implements nvinfer1::IHostMemory.

◆ size()

std::size_t samplesCommon::HostMemory::size ( ) const
inlineoverridevirtualnoexcept

The size in bytes of the data that was allocated.

Implements nvinfer1::IHostMemory.

◆ type()

DataType samplesCommon::HostMemory::type ( ) const
inlineoverridevirtualnoexcept

The type of the memory that was allocated.

Implements nvinfer1::IHostMemory.

◆ destroy()

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

Destroy the allocated memory.

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

Here is the caller graph for this function:

Member Data Documentation

◆ mData

void* samplesCommon::HostMemory::mData
protected

◆ mSize

std::size_t samplesCommon::HostMemory::mSize
protected

◆ mType

DataType samplesCommon::HostMemory::mType
protected

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