Helper base class for managing Cuda allocated buffers.
Definition at line 85 of file nvdsinfer_backend.h.
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 |
|
virtualdefault |
|
inlineexplicitprotected |
Definition at line 101 of file nvdsinfer_backend.h.
|
inline |
Definition at line 89 of file nvdsinfer_backend.h.
References m_Size.
|
protected |
|
inlineprotected |
Definition at line 102 of file nvdsinfer_backend.h.
|
inline |
Definition at line 92 of file nvdsinfer_backend.h.
References m_Buf.
|
inline |
Definition at line 97 of file nvdsinfer_backend.h.
References m_Buf.
|
protected |
Definition at line 110 of file nvdsinfer_backend.h.
Referenced by move_copy(), and ptr().
|
protected |
Definition at line 111 of file nvdsinfer_backend.h.
Referenced by bytes(), and move_copy().