TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
sample::TrtCudaBuffer< A, D > Class Template Reference

Managed buffer for host and device. More...

Inheritance diagram for sample::TrtCudaBuffer< A, D >:
Collaboration diagram for sample::TrtCudaBuffer< A, D >:

Public Member Functions

 TrtCudaBuffer ()=default
 
 TrtCudaBuffer (const TrtCudaBuffer &)=delete
 
TrtCudaBufferoperator= (const TrtCudaBuffer &)=delete
 
 TrtCudaBuffer (TrtCudaBuffer &&rhs)
 
TrtCudaBufferoperator= (TrtCudaBuffer &&rhs)
 
 ~TrtCudaBuffer ()
 
 TrtCudaBuffer (size_t size)
 
void allocate (size_t size)
 
void reset (void *ptr=nullptr)
 
void * get () const
 

Private Attributes

void * mPtr {nullptr}
 

Detailed Description

template<typename A, typename D>
class sample::TrtCudaBuffer< A, D >

Managed buffer for host and device.

Constructor & Destructor Documentation

◆ TrtCudaBuffer() [1/4]

template<typename A , typename D >
sample::TrtCudaBuffer< A, D >::TrtCudaBuffer ( )
default

◆ TrtCudaBuffer() [2/4]

template<typename A , typename D >
sample::TrtCudaBuffer< A, D >::TrtCudaBuffer ( const TrtCudaBuffer< A, D > &  )
delete

◆ TrtCudaBuffer() [3/4]

template<typename A , typename D >
sample::TrtCudaBuffer< A, D >::TrtCudaBuffer ( TrtCudaBuffer< A, D > &&  rhs)
inline

◆ ~TrtCudaBuffer()

template<typename A , typename D >
sample::TrtCudaBuffer< A, D >::~TrtCudaBuffer ( )
inline

◆ TrtCudaBuffer() [4/4]

template<typename A , typename D >
sample::TrtCudaBuffer< A, D >::TrtCudaBuffer ( size_t  size)
inline

Member Function Documentation

◆ operator=() [1/2]

template<typename A , typename D >
TrtCudaBuffer& sample::TrtCudaBuffer< A, D >::operator= ( const TrtCudaBuffer< A, D > &  )
delete

◆ operator=() [2/2]

template<typename A , typename D >
TrtCudaBuffer& sample::TrtCudaBuffer< A, D >::operator= ( TrtCudaBuffer< A, D > &&  rhs)
inline

◆ allocate()

template<typename A , typename D >
void sample::TrtCudaBuffer< A, D >::allocate ( size_t  size)
inline
Here is the caller graph for this function:

◆ reset()

template<typename A , typename D >
void sample::TrtCudaBuffer< A, D >::reset ( void *  ptr = nullptr)
inline
Here is the caller graph for this function:

◆ get()

template<typename A , typename D >
void* sample::TrtCudaBuffer< A, D >::get ( ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ mPtr

template<typename A , typename D >
void* sample::TrtCudaBuffer< A, D >::mPtr {nullptr}
private

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