Open3D (C++ API)  0.18.0+601516a
Public Member Functions
open3d::core::MemoryManagerCPU Class Reference

#include <MemoryManager.h>

Inheritance diagram for open3d::core::MemoryManagerCPU:
open3d::core::MemoryManagerDevice

Public Member Functions

void * Malloc (size_t byte_size, const Device &device) override
 
void Free (void *ptr, const Device &device) override
 Frees previously allocated memory at address ptr on device device. More...
 
void Memcpy (void *dst_ptr, const Device &dst_device, const void *src_ptr, const Device &src_device, size_t num_bytes) override
 
- Public Member Functions inherited from open3d::core::MemoryManagerDevice
virtual ~MemoryManagerDevice ()=default
 

Detailed Description

Direct memory manager which performs allocations and deallocations on the CPU via std::malloc and std::free.

Member Function Documentation

◆ Free()

void open3d::core::MemoryManagerCPU::Free ( void *  ptr,
const Device device 
)
overridevirtual

Frees previously allocated memory at address ptr on device device.

Implements open3d::core::MemoryManagerDevice.

◆ Malloc()

void * open3d::core::MemoryManagerCPU::Malloc ( size_t  byte_size,
const Device device 
)
overridevirtual

Allocates memory of byte_size bytes on device device and returns a pointer to the beginning of the allocated memory block.

Implements open3d::core::MemoryManagerDevice.

◆ Memcpy()

void open3d::core::MemoryManagerCPU::Memcpy ( void *  dst_ptr,
const Device dst_device,
const void *  src_ptr,
const Device src_device,
size_t  num_bytes 
)
overridevirtual

Copies num_bytes bytes of memory at address src_ptr on device src_device to address dst_ptr on device dst_device.

Implements open3d::core::MemoryManagerDevice.


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