Event interface for cl_event. More...
#include <cl.hpp>
Public Member Functions | |
Event () | |
Event (const Event &event) | |
Event (const cl_event &event) | |
Event & | operator= (const Event &rhs) |
Event & | operator= (const cl_event &rhs) |
template<typename T > | |
cl_int | getInfo (cl_event_info name, T *param) const |
template<cl_int name> | |
detail::param_traits < detail::cl_event_info, name > ::param_type | getInfo (cl_int *err=NULL) const |
template<typename T > | |
cl_int | getProfilingInfo (cl_profiling_info name, T *param) const |
template<cl_int name> | |
detail::param_traits < detail::cl_profiling_info, name >::param_type | getProfilingInfo (cl_int *err=NULL) const |
cl_int | wait () const |
Static Public Member Functions | |
static cl_int | waitForEvents (const VECTOR_CLASS< Event > &events) |
cl::Event::Event | ( | ) | [inline] |
cl::Event::Event | ( | const Event & | event | ) | [inline] |
cl::Event::Event | ( | const cl_event & | event | ) | [inline] |
cl_int cl::Event::getInfo | ( | cl_event_info | name, |
T * | param | ||
) | const [inline] |
Definition at line 1857 of file cl.hpp.
{ return detail::errHandler( detail::getInfo(&::clGetEventInfo, object_, name, param), __GET_EVENT_INFO_ERR); }
detail::param_traits<detail::cl_event_info, name>::param_type cl::Event::getInfo | ( | cl_int * | err = NULL | ) | const [inline] |
cl_int cl::Event::getProfilingInfo | ( | cl_profiling_info | name, |
T * | param | ||
) | const [inline] |
Definition at line 1878 of file cl.hpp.
{ return detail::errHandler(detail::getInfo( &::clGetEventProfilingInfo, object_, name, param), __GET_EVENT_PROFILE_INFO_ERR); }
detail::param_traits<detail::cl_profiling_info, name>::param_type cl::Event::getProfilingInfo | ( | cl_int * | err = NULL | ) | const [inline] |
Definition at line 1887 of file cl.hpp.
{ typename detail::param_traits< detail::cl_profiling_info, name>::param_type param; cl_int result = getProfilingInfo(name, ¶m); if (err != NULL) { *err = result; } return param; }
Definition at line 1842 of file cl.hpp.
{ if (this != &rhs) { detail::Wrapper<cl_type>::operator=(rhs); } return *this; }
Event& cl::Event::operator= | ( | const cl_event & | rhs | ) | [inline] |
Reimplemented from cl::detail::Wrapper< cl_event >.
Definition at line 1850 of file cl.hpp.
{ detail::Wrapper<cl_type>::operator=(rhs); return *this; }
cl_int cl::Event::wait | ( | ) | const [inline] |
Definition at line 1898 of file cl.hpp.
{ return detail::errHandler( ::clWaitForEvents(1, &object_), __WAIT_FOR_EVENTS_ERR); }
static cl_int cl::Event::waitForEvents | ( | const VECTOR_CLASS< Event > & | events | ) | [inline, static] |
Definition at line 1922 of file cl.hpp.
{ return detail::errHandler( ::clWaitForEvents( (cl_uint) events.size(), (cl_event*)&events.front()), __WAIT_FOR_EVENTS_ERR); }