SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::helper::CPUMemoryManager< T > Class Template Reference

#include <MemoryManager.h>

CPU MemoryManager. More...

Inheritance diagram for sofa::helper::CPUMemoryManager< T >:

Detailed Description

template<class T>
class sofa::helper::CPUMemoryManager< T >

CPU MemoryManager.

Classes

struct  rebind
 

Additional Inherited Members

- Static Public Member Functions inherited from sofa::helper::MemoryManager< T >
static int numDevices ()
 
static void hostAlloc (host_pointer *hPointer, int n)
 
static void memsetHost (host_pointer hPointer, int value, size_t n)
 
static void hostFree (const host_pointer hSrcPointer)
 
static void deviceAlloc (int d, device_pointer *dPointer, int n)
 
static void deviceFree (int d, const device_pointer dSrcPointer)
 
static void memcpyHostToDevice (int d, device_pointer dDestPointer, const host_pointer hSrcPointer, size_t n)
 
static void memcpyDeviceToHost (int d, host_pointer hDestPointer, const void *dSrcPointer, size_t n)
 
static void memcpyDeviceToDevice (int d, device_pointer dDestPointer, const device_pointer dSrcPointer, size_t n)
 
static void memsetDevice (int d, device_pointer dDestPointer, int value, size_t n)
 
static int getBufferDevice ()
 
static bool bufferAlloc (gl_buffer *, int)
 
static void bufferFree (const gl_buffer)
 
static bool bufferRegister (const gl_buffer)
 
static void bufferUnregister (const gl_buffer)
 
static bool bufferMapToDevice (device_pointer *, const gl_buffer)
 
static void bufferUnmapToDevice (device_pointer *, const gl_buffer)
 
static device_pointer deviceOffset (device_pointer dPointer, size_t offset)
 
static device_pointer null ()
 
static bool isNull (device_pointer p)