HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ort::MemoryAllocation Struct Reference

Represents native memory allocation coming from one of the OrtAllocators registered with OnnxRuntime. Use it to wrap an allocation made by an allocator so it can be automatically released when no longer needed. More...

#include <onnxruntime_cxx_api.h>

Public Member Functions

 MemoryAllocation (OrtAllocator *allocator, void *p, size_t size)
 
 ~MemoryAllocation ()
 
 MemoryAllocation (const MemoryAllocation &)=delete
 
MemoryAllocationoperator= (const MemoryAllocation &)=delete
 
 MemoryAllocation (MemoryAllocation &&) noexcept
 
MemoryAllocationoperator= (MemoryAllocation &&) noexcept
 
voidget ()
 
size_t size () const
 

Detailed Description

Represents native memory allocation coming from one of the OrtAllocators registered with OnnxRuntime. Use it to wrap an allocation made by an allocator so it can be automatically released when no longer needed.

Definition at line 1769 of file onnxruntime_cxx_api.h.

Constructor & Destructor Documentation

Ort::MemoryAllocation::MemoryAllocation ( OrtAllocator *  allocator,
void p,
size_t  size 
)
inline

Definition at line 169 of file onnxruntime_cxx_inline.h.

Ort::MemoryAllocation::~MemoryAllocation ( )
inline

Definition at line 173 of file onnxruntime_cxx_inline.h.

Ort::MemoryAllocation::MemoryAllocation ( const MemoryAllocation )
delete
Ort::MemoryAllocation::MemoryAllocation ( MemoryAllocation &&  o)
inlinenoexcept

Definition at line 181 of file onnxruntime_cxx_inline.h.

Member Function Documentation

void* Ort::MemoryAllocation::get ( )
inline

Definition at line 1777 of file onnxruntime_cxx_api.h.

MemoryAllocation& Ort::MemoryAllocation::operator= ( const MemoryAllocation )
delete
MemoryAllocation & Ort::MemoryAllocation::operator= ( MemoryAllocation &&  o)
inlinenoexcept

Definition at line 185 of file onnxruntime_cxx_inline.h.

size_t Ort::MemoryAllocation::size ( void  ) const
inline

Definition at line 1778 of file onnxruntime_cxx_api.h.


The documentation for this struct was generated from the following files: