NVIDIA DeepStream SDK API Reference

6.4 Release
nvdsinferserver::SysMem Class Referenceabstract

Detailed Description

Base class for managing memory allocation.

Definition at line 87 of file infer_cuda_utils.h.

Inheritance diagram for nvdsinferserver::SysMem:

Public Member Functions

virtual ~SysMem ()=default
 
size_t bytes () const
 
template<typename T >
T * ptr () const
 
void * ptr () const
 
int devId () const
 
InferMemType type () const
 
void reuse ()
 
virtual void grow (size_t bytes)=0
 

Protected Member Functions

 SysMem (size_t s, int devId)
 
void move_copy (SysMem &&o)
 
 DISABLE_CLASS_COPY (SysMem)
 

Protected Attributes

void * m_Buf = nullptr
 
size_t m_Size = 0
 
int m_DevId = 0
 
InferMemType m_Type = InferMemType::kNone
 

Constructor & Destructor Documentation

◆ ~SysMem()

virtual nvdsinferserver::SysMem::~SysMem ( )
virtualdefault

◆ SysMem()

nvdsinferserver::SysMem::SysMem ( size_t  s,
int  devId 
)
inlineprotected

Definition at line 106 of file infer_cuda_utils.h.

Member Function Documentation

◆ bytes()

size_t nvdsinferserver::SysMem::bytes ( ) const
inline

Definition at line 90 of file infer_cuda_utils.h.

References m_Size.

◆ devId()

int nvdsinferserver::SysMem::devId ( ) const
inline

Definition at line 98 of file infer_cuda_utils.h.

References m_DevId.

◆ DISABLE_CLASS_COPY()

nvdsinferserver::SysMem::DISABLE_CLASS_COPY ( SysMem  )
protected

◆ grow()

virtual void nvdsinferserver::SysMem::grow ( size_t  bytes)
pure virtual

◆ move_copy()

void nvdsinferserver::SysMem::move_copy ( SysMem &&  o)
inlineprotected

Definition at line 107 of file infer_cuda_utils.h.

References nvdsinferserver::kNone, m_Buf, m_DevId, m_Size, and m_Type.

◆ ptr() [1/2]

template<typename T >
T* nvdsinferserver::SysMem::ptr ( ) const
inline

Definition at line 93 of file infer_cuda_utils.h.

References m_Buf.

◆ ptr() [2/2]

void* nvdsinferserver::SysMem::ptr ( ) const
inline

Definition at line 97 of file infer_cuda_utils.h.

References m_Buf.

◆ reuse()

void nvdsinferserver::SysMem::reuse ( )
inline

Definition at line 100 of file infer_cuda_utils.h.

◆ type()

InferMemType nvdsinferserver::SysMem::type ( ) const
inline

Definition at line 99 of file infer_cuda_utils.h.

References m_Type.

Field Documentation

◆ m_Buf

void* nvdsinferserver::SysMem::m_Buf = nullptr
protected

Definition at line 120 of file infer_cuda_utils.h.

Referenced by move_copy(), and ptr().

◆ m_DevId

int nvdsinferserver::SysMem::m_DevId = 0
protected

Definition at line 122 of file infer_cuda_utils.h.

Referenced by devId(), and move_copy().

◆ m_Size

size_t nvdsinferserver::SysMem::m_Size = 0
protected

Definition at line 121 of file infer_cuda_utils.h.

Referenced by bytes(), and move_copy().

◆ m_Type

InferMemType nvdsinferserver::SysMem::m_Type = InferMemType::kNone
protected

Definition at line 123 of file infer_cuda_utils.h.

Referenced by move_copy(), and type().


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