18#ifndef itkOpenCLMemoryObject_h
19#define itkOpenCLMemoryObject_h
97 return this->m_Id == 0;
111 return this->m_Context;
152 Unmap(
void * ptr,
const bool wait =
false);
206template <
typename charT,
typename traits>
207inline std::basic_ostream<charT, traits> &
210 if (memoryObject.
IsNull())
212 strm <<
"OpenCLMemoryObject(null)";
216 const char indent =
' ';
218 strm <<
"OpenCLMemoryObject\n"
219 << indent <<
"Id: " << memoryObject.
GetMemoryId() <<
'\n'
220 << indent <<
"Context: " << memoryObject.
GetContext() <<
'\n'
221 << indent <<
"Memory type: " << memoryObject.
GetMemoryType() <<
'\n'
222 << indent <<
"Flags: " << memoryObject.
GetFlags() <<
'\n'
223 << indent <<
"Size: " << memoryObject.
GetSize() <<
'\n'
224 << indent <<
"Map count: " << memoryObject.
GetMapCount() <<
'\n'
226 << indent <<
"Host pointer: " << memoryObject.
GetHostPointer() <<
'\n'
227 << indent <<
"Access: ";
232 strm <<
"Read Write";
235 strm <<
"Write Only";
The OpenCLContext class represents an OpenCL context.
OpenCLEventList class represents a list of OpenCLEvent objects.
OpenCLEvent class represents an OpenCL event object.
The OpenCLMemoryObject class represents all common memory objects such as buffers and image objects.
cl_int SetDestructorCallback(void(CL_CALLBACK *pfn_notify)(cl_mem, void *), void *user_data=nullptr)
cl_uint GetMapCount() const
void SetId(OpenCLContext *context, const cl_mem id)
cl_map_flags GetMapFlags(const OpenCLMemoryObject::Access access)
OpenCLContext * m_Context
OpenCLMemoryObject(OpenCLContext *context=0)
const Self & operator=(const Self &)=delete
OpenCLMemoryObject(const Self &other)=delete
cl_mem_object_type GetMemoryType() const
OpenCLMemoryObject(OpenCLContext *context, const cl_mem id)
cl_mem_flags GetFlags() const
cl_uint GetReferenceCount() const
Point< std::vcl_size_t, 2 > PointType
cl_mem GetMemoryId() const
OpenCLEvent UnmapAsync(void *ptr, const OpenCLEventList &event_list=OpenCLEventList())
OpenCLContext * GetContext() const
std::vcl_size_t GetSize() const
OpenCLMemoryObject::Access GetAccess() const
void * GetHostPointer() const
void Unmap(void *ptr, const bool wait=false)
bool ITKOpenCL_EXPORT operator==(const OpenCLCommandQueue &lhs, const OpenCLCommandQueue &rhs)
bool ITKOpenCL_EXPORT operator!=(const OpenCLCommandQueue &lhs, const OpenCLCommandQueue &rhs)
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &strm, const OpenCLCommandQueue &queue)