18 #ifndef __itkOpenCLEventList_h 19 #define __itkOpenCLEventList_h 61 bool IsEmpty()
const {
return this->m_Events.empty(); }
65 std::size_t
GetSize()
const {
return this->m_Events.size(); }
93 const cl_event * GetEventData()
const;
97 const OpenCLEventListArrayType & GetEventArray()
const;
119 cl_int WaitForFinished();
137 template<
typename charT,
typename traits >
139 std::basic_ostream< charT, traits > &
140 operator<<( std::basic_ostream< charT, traits > & strm,
143 if( !eventlist.GetSize() )
145 strm <<
"OpenCLEventList()";
149 OpenCLEventList::OpenCLEventListArrayType::const_iterator it;
153 strm <<
"OpenCLEventList contains:" << std::endl;
154 for( it = eventsArray.begin(); it < eventsArray.end(); ++it )
161 strm <<
"array id: " <<
id <<
" " << *it << std::endl;
std::vector< cl_event > OpenCLEventListArrayType
OpenCLEventList class represents a list of OpenCLEvent objects.
const OpenCLEventListArrayType & GetEventArray() const
std::vcl_size_t GetSize() const
bool ITKOpenCL_EXPORT operator==(const OpenCLCommandQueue &lhs, const OpenCLCommandQueue &rhs)
bool ITKOpenCL_EXPORT operator!=(const OpenCLCommandQueue &lhs, const OpenCLCommandQueue &rhs)
__host__ __device__ void operator+=(int2 &a, int2 b)
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &strm, const OpenCLCommandQueue &queue)
OpenCLEventListArrayType m_Events
OpenCLEvent class represents an OpenCL event object.