NVIDIA DeepStream SDK API Reference

8.0 Release
nvdsinferserver::SysMem Class Referenceabstract

Detailed Description

Base class for managing memory allocation.

Definition at line 87 of file sources/libs/nvdsinferserver/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
 
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)
 
 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() [1/2]

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

◆ SysMem() [1/2]

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

◆ ~SysMem() [2/2]

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

◆ SysMem() [2/2]

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

Member Function Documentation

◆ bytes() [1/2]

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

Definition at line 90 of file sources/libs/nvdsinferserver/infer_cuda_utils.h.

References m_Size.

◆ bytes() [2/2]

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

Definition at line 90 of file 9.0/sources/libs/nvdsinferserver/infer_cuda_utils.h.

References m_Size.

◆ devId() [1/2]

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

Definition at line 98 of file sources/libs/nvdsinferserver/infer_cuda_utils.h.

References m_DevId.

◆ devId() [2/2]

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

Definition at line 98 of file 9.0/sources/libs/nvdsinferserver/infer_cuda_utils.h.

References m_DevId.

◆ DISABLE_CLASS_COPY() [1/2]

nvdsinferserver::SysMem::DISABLE_CLASS_COPY ( SysMem  )
protected

◆ DISABLE_CLASS_COPY() [2/2]

nvdsinferserver::SysMem::DISABLE_CLASS_COPY ( SysMem  )
protected

◆ grow() [1/2]

◆ grow() [2/2]

◆ move_copy() [1/2]

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

◆ move_copy() [2/2]

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

◆ ptr() [1/4]

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

Definition at line 93 of file 9.0/sources/libs/nvdsinferserver/infer_cuda_utils.h.

References m_Buf.

◆ ptr() [2/4]

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

Definition at line 93 of file sources/libs/nvdsinferserver/infer_cuda_utils.h.

References m_Buf.

◆ ptr() [3/4]

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

Definition at line 97 of file 9.0/sources/libs/nvdsinferserver/infer_cuda_utils.h.

References m_Buf.

◆ ptr() [4/4]

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

Definition at line 97 of file sources/libs/nvdsinferserver/infer_cuda_utils.h.

References m_Buf.

◆ reuse() [1/2]

void nvdsinferserver::SysMem::reuse ( )
inline

◆ reuse() [2/2]

void nvdsinferserver::SysMem::reuse ( )
inline

◆ type() [1/2]

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

Definition at line 99 of file 9.0/sources/libs/nvdsinferserver/infer_cuda_utils.h.

References m_Type.

◆ type() [2/2]

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

Definition at line 99 of file sources/libs/nvdsinferserver/infer_cuda_utils.h.

References m_Type.

Field Documentation

◆ m_Buf

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

Definition at line 120 of file sources/libs/nvdsinferserver/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 sources/libs/nvdsinferserver/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 sources/libs/nvdsinferserver/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 sources/libs/nvdsinferserver/infer_cuda_utils.h.

Referenced by move_copy(), and type().


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