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

Wrapper around OrtAllocator. More...

#include <onnxruntime_cxx_api.h>

+ Inheritance diagram for Ort::Allocator:

Public Member Functions

 Allocator (std::nullptr_t)
 Convenience to create a class member and then replace with an instance. More...
 
 Allocator (const Session &session, const OrtMemoryInfo *)
 
- Public Member Functions inherited from Ort::detail::AllocatorImpl< OrtAllocator >
voidAlloc (size_t size)
 
MemoryAllocation GetAllocation (size_t size)
 
void Free (void *p)
 
ConstMemoryInfo GetInfo () const
 
- Public Member Functions inherited from Ort::detail::Base< OrtAllocator >
constexpr Base ()=default
 
constexpr Base (contained_type *p) noexcept
 
 Base (const Base &)=delete
 
 Base (Base &&v) noexcept
 
 ~Base ()
 
Baseoperator= (const Base &)=delete
 
Baseoperator= (Base &&v) noexcept
 
constexpr operator contained_type * () const noexcept
 
contained_typerelease ()
 Relinquishes ownership of the contained C object pointer The underlying object is not destroyed. More...
 

Additional Inherited Members

- Public Types inherited from Ort::detail::AllocatorImpl< OrtAllocator >
using B = Base< OrtAllocator >
 
- Public Types inherited from Ort::detail::Base< OrtAllocator >
using contained_type = OrtAllocator
 
- Protected Attributes inherited from Ort::detail::Base< OrtAllocator >
contained_typep_
 

Detailed Description

Wrapper around OrtAllocator.

Definition at line 1410 of file onnxruntime_cxx_api.h.

Constructor & Destructor Documentation

Ort::Allocator::Allocator ( std::nullptr_t  )
inlineexplicit

Convenience to create a class member and then replace with an instance.

Definition at line 1411 of file onnxruntime_cxx_api.h.

Ort::Allocator::Allocator ( const Session session,
const OrtMemoryInfo mem_info 
)
inline

Definition at line 180 of file onnxruntime_cxx_inline.h.


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