#include <iso_cl_memory_object.h>
Inherited by iso::cl::BufferObject< DataType >, and iso::cl::ImageObject< DataType >.
Inheritance diagram for iso::cl::MemoryObject:
Public Member Functions | |
MemoryObject (MemoryUsage pUsage, int pDataCount) | |
~MemoryObject () | |
bool | initialized () const |
void | reset (MemoryUsage pUsage, int pDataCount) |
MemoryUsage | usage () const |
int | dataCount () const |
cl_mem & | memory () |
virtual void | read (Queue &pQueue)=0 throw (CLException) |
virtual void | write (Queue &pQueue)=0 throw (CLException) |
Protected Attributes | |
MemoryUsage | mUsage |
int | mDataCount |
cl_mem | mMemory |
Friends | |
class | Program |
class | Queue |
MemoryObject::MemoryObject | ( | MemoryUsage | pUsage, | |
int | pDataCount | |||
) |
MemoryObject::~MemoryObject | ( | ) |
bool iso::cl::MemoryObject::initialized | ( | ) | const [inline] |
void MemoryObject::reset | ( | MemoryUsage | pUsage, | |
int | pDataCount | |||
) |
Reimplemented in iso::cl::BufferObject< DataType >.
MemoryUsage MemoryObject::usage | ( | ) | const |
int MemoryObject::dataCount | ( | ) | const |
cl_mem & MemoryObject::memory | ( | ) |
virtual void iso::cl::MemoryObject::read | ( | Queue & | pQueue | ) | throw (CLException) [pure virtual] |
Implemented in iso::cl::BufferObject< DataType >, and iso::cl::ImageObject< DataType >.
virtual void iso::cl::MemoryObject::write | ( | Queue & | pQueue | ) | throw (CLException) [pure virtual] |
Implemented in iso::cl::BufferObject< DataType >, and iso::cl::ImageObject< DataType >.
friend class Program [friend] |
friend class Queue [friend] |
MemoryUsage iso::cl::MemoryObject::mUsage [protected] |
int iso::cl::MemoryObject::mDataCount [protected] |
cl_mem iso::cl::MemoryObject::mMemory [protected] |