Open3D (C++ API)
0.18.0+3975044
|
#include <StdGPUHashBackend.h>
Public Types | |
using | value_type = T |
T. More... | |
Public Member Functions | |
StdGPUAllocator ()=default | |
Default constructor. More... | |
StdGPUAllocator (int device_id) | |
Constructor from device. More... | |
StdGPUAllocator (const StdGPUAllocator &)=default | |
Default copy constructor. More... | |
StdGPUAllocator & | operator= (const StdGPUAllocator &)=default |
Default copy assignment operator. More... | |
StdGPUAllocator (StdGPUAllocator &&)=default | |
Default move constructor. More... | |
StdGPUAllocator & | operator= (StdGPUAllocator &&)=default |
Default move assignment operator. More... | |
template<typename U > | |
StdGPUAllocator (const StdGPUAllocator< U > &other) | |
Rebind copy constructor. More... | |
T * | allocate (std::size_t n) |
Allocates memory of size n . More... | |
void | deallocate (T *p, std::size_t n) |
Deallocates memory from pointer p of size n . More... | |
bool | operator== (const StdGPUAllocator &other) |
Returns true if the instances are equal, false otherwise. More... | |
bool | operator!= (const StdGPUAllocator &other) |
Returns true if the instances are not equal, false otherwise. More... | |
Friends | |
template<typename T2 > | |
class | StdGPUAllocator |
Class satisfying the Allocator requirements defined by the C++ standard. This bridge makes the MemoryManager interface accessible to all classes and containers in stdgpu that use the standard Allocator interface.
This allows to allocate (potentially cached) GPU memory in stdgpu.
using open3d::core::StdGPUAllocator< T >::value_type = T |
T.
|
default |
Default constructor.
|
inlineexplicit |
Constructor from device.
|
default |
Default copy constructor.
|
default |
Default move constructor.
|
inline |
Rebind copy constructor.
|
inline |
Allocates memory of size n
.
|
inline |
Deallocates memory from pointer p
of size n
.
|
inline |
Returns true if the instances are not equal, false otherwise.
|
default |
Default copy assignment operator.
|
default |
Default move assignment operator.
|
inline |
Returns true if the instances are equal, false otherwise.