Definition at line 22 of file memory.hpp.
|
virtual bool | flush ()=0 |
| Flush the memory into the device.
|
|
virtual bool | allocate (size_t sz)=0 |
| allocate on device a buffer of
|
|
virtual bool | resize (size_t sz)=0 |
| resize on device a buffer
|
|
virtual void | destroy ()=0 |
| Destroy the buffer on the device.
|
|
virtual bool | copy (const memory &m)=0 |
| Copy the memory from one device to another device.
|
|
virtual size_t | size () const =0 |
| get the size of the buffer
|
|
virtual void * | getPointer ()=0 |
| return a data pointer
|
|
virtual const void * | getPointer () const =0 |
| return a data pointer
|
|
virtual | ~memory () |
| destructor
|
|
virtual void | incRef ()=0 |
| Increment the internal reference counter.
|
|
virtual void | decRef ()=0 |
| Decrement the internal reference counter.
|
|
virtual long int | ref ()=0 |
| Return the actual reference counter.
|
|
virtual bool | isInitialized ()=0 |
| Return if the actual memory that is going to be allocated is already initialized.
|
|
virtual void * | getDevicePointer ()=0 |
| Return the device pointer of the memory.
|
|
virtual void | deviceToHost ()=0 |
| Copy the memory from device to host.
|
|
virtual void | hostToDevice ()=0 |
| Copy the memory from host to device.
|
|
virtual void | hostToDevice (size_t start, size_t top)=0 |
| Copy the memory from host to device.
|
|
virtual void | deviceToHost (size_t start, size_t stop)=0 |
| Copy the memory from device to host.
|
|
virtual void | fill (unsigned char c)=0 |
| Fill the buffer with a particular byte.
|
|
◆ ~memory()
virtual memory::~memory |
( |
| ) |
|
|
inlinevirtual |
destructor
destructor
Definition at line 93 of file memory.hpp.
◆ allocate()
virtual bool memory::allocate |
( |
size_t |
sz | ) |
|
|
pure virtual |
◆ copy()
virtual bool memory::copy |
( |
const memory & |
m | ) |
|
|
pure virtual |
◆ decRef()
virtual void memory::decRef |
( |
| ) |
|
|
pure virtual |
◆ destroy()
virtual void memory::destroy |
( |
| ) |
|
|
pure virtual |
◆ deviceToHost() [1/2]
virtual void memory::deviceToHost |
( |
| ) |
|
|
pure virtual |
◆ deviceToHost() [2/2]
virtual void memory::deviceToHost |
( |
size_t |
start, |
|
|
size_t |
stop |
|
) |
| |
|
pure virtual |
◆ fill()
virtual void memory::fill |
( |
unsigned char |
c | ) |
|
|
pure virtual |
◆ flush()
virtual bool memory::flush |
( |
| ) |
|
|
pure virtual |
◆ getDevicePointer()
virtual void * memory::getDevicePointer |
( |
| ) |
|
|
pure virtual |
◆ getPointer() [1/2]
virtual const void * memory::getPointer |
( |
| ) |
const |
|
pure virtual |
◆ getPointer() [2/2]
virtual void * memory::getPointer |
( |
| ) |
|
|
pure virtual |
◆ hostToDevice() [1/2]
virtual void memory::hostToDevice |
( |
| ) |
|
|
pure virtual |
◆ hostToDevice() [2/2]
virtual void memory::hostToDevice |
( |
size_t |
start, |
|
|
size_t |
top |
|
) |
| |
|
pure virtual |
◆ incRef()
virtual void memory::incRef |
( |
| ) |
|
|
pure virtual |
◆ isInitialized()
virtual bool memory::isInitialized |
( |
| ) |
|
|
pure virtual |
◆ ref()
virtual long int memory::ref |
( |
| ) |
|
|
pure virtual |
◆ resize()
virtual bool memory::resize |
( |
size_t |
sz | ) |
|
|
pure virtual |
◆ size()
virtual size_t memory::size |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: