18#ifndef __itkOpenCLCommandQueue_h
19#define __itkOpenCLCommandQueue_h
65 m_Context( context ), m_Id( id ) {}
78 bool IsNull()
const {
return this->m_Id == 0; }
91 cl_command_queue
GetQueueId()
const {
return this->m_Id; }
113template<
typename charT,
typename traits >
115std::basic_ostream< charT, traits > &
116operator<<( std::basic_ostream< charT, traits > & strm,
121 strm <<
"OpenCLCommandQueue(null)";
125 const char indent =
' ';
127 strm <<
"OpenCLCommandQueue" << std::endl
128 << indent <<
"Id: " << queue.
GetQueueId() << std::endl
129 << indent <<
"Out of order: " << ( queue.
IsOutOfOrder() ?
"Yes" :
"No" ) << std::endl
130 << indent <<
"Profiling enabled: " << ( queue.
IsProfilingEnabled() ?
"Yes" :
"No" ) << std::endl;
The OpenCLCommandQueue class represents an OpenCL a command-queue on a specific device and valid Open...
OpenCLContext * GetContext() const
cl_command_queue GetQueueId() const
OpenCLCommandQueue & operator=(const OpenCLCommandQueue &other)
OpenCLContext * m_Context
OpenCLCommandQueue(OpenCLContext *context, cl_command_queue id)
bool IsProfilingEnabled() const
bool IsOutOfOrder() const
OpenCLCommandQueue(const OpenCLCommandQueue &other)
The OpenCLContext class represents an OpenCL context.
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)