NVIDIA DeepStream SDK API Reference

6.4 Release
nvdsinfer::CudaDeviceBuffer Class Reference

Detailed Description

CUDA device buffers.

Definition at line 117 of file nvdsinfer_backend.h.

Inheritance diagram for nvdsinfer::CudaDeviceBuffer:
Collaboration diagram for nvdsinfer::CudaDeviceBuffer:

Public Member Functions

 CudaDeviceBuffer (size_t size)
 
 ~CudaDeviceBuffer ()
 
size_t bytes () const
 
template<typename T >
T * ptr ()
 
void * ptr ()
 

Protected Member Functions

void move_copy (CudaBuffer &&o)
 
 DISABLE_CLASS_COPY (CudaBuffer)
 

Protected Attributes

void * m_Buf = nullptr
 
size_t m_Size = 0
 

Constructor & Destructor Documentation

◆ CudaDeviceBuffer()

nvdsinfer::CudaDeviceBuffer::CudaDeviceBuffer ( size_t  size)
explicit

◆ ~CudaDeviceBuffer()

nvdsinfer::CudaDeviceBuffer::~CudaDeviceBuffer ( )

Member Function Documentation

◆ bytes()

size_t nvdsinfer::CudaBuffer::bytes ( ) const
inlineinherited

Definition at line 89 of file nvdsinfer_backend.h.

References nvdsinfer::CudaBuffer::m_Size.

◆ DISABLE_CLASS_COPY()

nvdsinfer::CudaBuffer::DISABLE_CLASS_COPY ( CudaBuffer  )
protectedinherited

◆ move_copy()

void nvdsinfer::CudaBuffer::move_copy ( CudaBuffer &&  o)
inlineprotectedinherited

◆ ptr() [1/2]

template<typename T >
T* nvdsinfer::CudaBuffer::ptr ( )
inlineinherited

Definition at line 92 of file nvdsinfer_backend.h.

References nvdsinfer::CudaBuffer::m_Buf.

◆ ptr() [2/2]

void* nvdsinfer::CudaBuffer::ptr ( )
inlineinherited

Definition at line 97 of file nvdsinfer_backend.h.

References nvdsinfer::CudaBuffer::m_Buf.

Field Documentation

◆ m_Buf

void* nvdsinfer::CudaBuffer::m_Buf = nullptr
protectedinherited

◆ m_Size

size_t nvdsinfer::CudaBuffer::m_Size = 0
protectedinherited

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