NVIDIA DeepStream SDK API Reference

6.4 Release
nvdsinfer::CudaBuffer Class Reference

Detailed Description

Helper base class for managing Cuda allocated buffers.

Definition at line 85 of file nvdsinfer_backend.h.

Inheritance diagram for nvdsinfer::CudaBuffer:

Public Member Functions

virtual ~CudaBuffer ()=default
 
size_t bytes () const
 
template<typename T >
T * ptr ()
 
void * ptr ()
 

Protected Member Functions

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

Protected Attributes

void * m_Buf = nullptr
 
size_t m_Size = 0
 

Constructor & Destructor Documentation

◆ ~CudaBuffer()

virtual nvdsinfer::CudaBuffer::~CudaBuffer ( )
virtualdefault

◆ CudaBuffer()

nvdsinfer::CudaBuffer::CudaBuffer ( size_t  s)
inlineexplicitprotected

Definition at line 101 of file nvdsinfer_backend.h.

Member Function Documentation

◆ bytes()

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

Definition at line 89 of file nvdsinfer_backend.h.

References m_Size.

◆ DISABLE_CLASS_COPY()

nvdsinfer::CudaBuffer::DISABLE_CLASS_COPY ( CudaBuffer  )
protected

◆ move_copy()

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

Definition at line 102 of file nvdsinfer_backend.h.

References m_Buf, and m_Size.

◆ ptr() [1/2]

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

Definition at line 92 of file nvdsinfer_backend.h.

References m_Buf.

◆ ptr() [2/2]

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

Definition at line 97 of file nvdsinfer_backend.h.

References m_Buf.

Field Documentation

◆ m_Buf

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

Definition at line 110 of file nvdsinfer_backend.h.

Referenced by move_copy(), and ptr().

◆ m_Size

size_t nvdsinfer::CudaBuffer::m_Size = 0
protected

Definition at line 111 of file nvdsinfer_backend.h.

Referenced by bytes(), and move_copy().


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