Helper base class for managing Cuda allocated buffers.
Definition at line 86 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 102 of file nvdsinfer_backend.h.
|
inline |
Definition at line 90 of file nvdsinfer_backend.h.
References m_Size.
|
protected |
|
inlineprotected |
Definition at line 103 of file nvdsinfer_backend.h.
|
inline |
Definition at line 93 of file nvdsinfer_backend.h.
References m_Buf.
|
inline |
Definition at line 98 of file nvdsinfer_backend.h.
References m_Buf.
|
protected |
Definition at line 111 of file nvdsinfer_backend.h.
Referenced by move_copy(), and ptr().
|
protected |
Definition at line 112 of file nvdsinfer_backend.h.
Referenced by bytes(), and move_copy().