TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
samplesCommon::TypedHostMemory< ElemType, dataType > Class Template Reference
Inheritance diagram for samplesCommon::TypedHostMemory< ElemType, dataType >:
Collaboration diagram for samplesCommon::TypedHostMemory< ElemType, dataType >:

Public Member Functions

 TypedHostMemory (std::size_t size)
 
void destroy () noexcept override
 Destroy the allocated memory. More...
 
ElemType * raw () noexcept
 
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...
 

Protected Attributes

void * mData
 
std::size_t mSize
 
DataType mType
 

Constructor & Destructor Documentation

◆ TypedHostMemory()

template<typename ElemType , DataType dataType>
samplesCommon::TypedHostMemory< ElemType, dataType >::TypedHostMemory ( std::size_t  size)
inline

Member Function Documentation

◆ destroy()

template<typename ElemType , DataType dataType>
void samplesCommon::TypedHostMemory< ElemType, dataType >::destroy ( )
inlineoverridevirtualnoexcept

Destroy the allocated memory.

Implements nvinfer1::IHostMemory.

◆ raw()

template<typename ElemType , DataType dataType>
ElemType* samplesCommon::TypedHostMemory< ElemType, dataType >::raw ( )
inlinenoexcept

◆ data()

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

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

Implements nvinfer1::IHostMemory.

◆ size()

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

The size in bytes of the data that was allocated.

Implements nvinfer1::IHostMemory.

◆ type()

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

The type of the memory that was allocated.

Implements nvinfer1::IHostMemory.

Member Data Documentation

◆ mData

void* samplesCommon::HostMemory::mData
protectedinherited

◆ mSize

std::size_t samplesCommon::HostMemory::mSize
protectedinherited

◆ mType

DataType samplesCommon::HostMemory::mType
protectedinherited

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