Helper base class for managing Cuda allocated buffers.
Definition at line 123 of file nvdspreprocess_impl.h.

Public Member Functions | |
| virtual | ~CudaBuffer ()=default |
| size_t | bytes () const |
| size of cuda buffer in bytes More... | |
| template<typename T > | |
| T * | ptr () |
| template to return cuda buffer More... | |
| void * | ptr () |
| pointer to cuda buffer More... | |
Protected Member Functions | |
| CudaBuffer (size_t s) | |
| helper move copy functionality More... | |
| void | move_copy (CudaBuffer &&o) |
| move_copy cuda buffer More... | |
| DISABLE_CLASS_COPY (CudaBuffer) | |
| disable class copy More... | |
Protected Attributes | |
| void * | m_Buf = nullptr |
| pointer to cuda buffer More... | |
| size_t | m_Size = 0 |
| buffer size More... | |
|
virtualdefault |
|
inlineexplicitprotected |
helper move copy functionality
Definition at line 141 of file nvdspreprocess_impl.h.
|
inline |
size of cuda buffer in bytes
Definition at line 128 of file nvdspreprocess_impl.h.
References m_Size.
|
protected |
disable class copy
|
inlineprotected |
move_copy cuda buffer
Definition at line 143 of file nvdspreprocess_impl.h.
|
inline |
template to return cuda buffer
Definition at line 131 of file nvdspreprocess_impl.h.
References m_Buf.
|
inline |
|
protected |
pointer to cuda buffer
Definition at line 153 of file nvdspreprocess_impl.h.
Referenced by move_copy(), and ptr().
|
protected |
buffer size
Definition at line 155 of file nvdspreprocess_impl.h.
Referenced by bytes(), and move_copy().