OpenPose
1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
|
Class interface for cl_context. More...
#include <cl2.hpp>
Inherits cl::detail::Wrapper< cl_context >.
Public Member Functions | |
Context (const vector< Device > &devices, cl_context_properties *properties=NULL, void(CL_CALLBACK *notifyFptr)(const char *, const void *, size_type, void *)=NULL, void *data=NULL, cl_int *err=NULL) | |
Constructs a context including a list of specified devices. More... | |
Context (const Device &device, cl_context_properties *properties=NULL, void(CL_CALLBACK *notifyFptr)(const char *, const void *, size_type, void *)=NULL, void *data=NULL, cl_int *err=NULL) | |
Context (cl_device_type type, cl_context_properties *properties=NULL, void(CL_CALLBACK *notifyFptr)(const char *, const void *, size_type, void *)=NULL, void *data=NULL, cl_int *err=NULL) | |
Constructs a context including all or a subset of devices of a specified type. More... | |
Context (const Context &ctx) | |
Copy constructor to forward copy to the superclass correctly. Required for MSVC. More... | |
Context & | operator= (const Context &ctx) |
Copy assignment to forward copy to the superclass correctly. Required for MSVC. More... | |
Context (Context &&ctx) CL_HPP_NOEXCEPT_ | |
Move constructor to forward move to the superclass correctly. Required for MSVC. More... | |
Context & | operator= (Context &&ctx) |
Move assignment to forward move to the superclass correctly. Required for MSVC. More... | |
Context () | |
Default constructor - initializes to NULL. More... | |
Context (const cl_context &context, bool retainObject=false) | |
Constructor from cl_context - takes ownership. More... | |
Context & | operator= (const cl_context &rhs) |
Assignment operator from cl_context - takes ownership. More... | |
template<typename T > | |
cl_int | getInfo (cl_context_info name, T *param) const |
Wrapper for clGetContextInfo(). More... | |
template<cl_int name> | |
detail::param_traits < detail::cl_context_info, name >::param_type | getInfo (cl_int *err=NULL) const |
Wrapper for clGetContextInfo() that returns by value. More... | |
cl_int | getSupportedImageFormats (cl_mem_flags flags, cl_mem_object_type type, vector< ImageFormat > *formats) const |
Gets a list of supported image formats. More... | |
![]() | |
Wrapper () | |
Wrapper (const cl_type &obj, bool retainObject) | |
Wrapper (const Wrapper< cl_type > &rhs) | |
Wrapper (Wrapper< cl_type > &&rhs) CL_HPP_NOEXCEPT_ | |
~Wrapper () | |
Wrapper< cl_type > & | operator= (const Wrapper< cl_type > &rhs) |
Wrapper< cl_type > & | operator= (Wrapper< cl_type > &&rhs) |
Wrapper< cl_type > & | operator= (const cl_type &rhs) |
const cl_type & | operator() () const |
cl_type & | operator() () |
const cl_type | get () const |
cl_type | get () |
Static Public Member Functions | |
static Context | getDefault (cl_int *err=NULL) |
Returns a singleton context including all devices of CL_DEVICE_TYPE_DEFAULT. More... | |
static Context | setDefault (const Context &default_context) |
Additional Inherited Members | |
![]() | |
typedef cl_context | cl_type |
![]() | |
cl_int | retain () const |
cl_int | release () const |
![]() | |
cl_type | object_ |
Class interface for cl_context.
Deprecated APIs for 1.2
|
inline |
Constructs a context including a list of specified devices.
Wraps clCreateContext().
|
inline |
|
inline |
Constructs a context including all or a subset of devices of a specified type.
Wraps clCreateContextFromType().
|
inline |
Copy constructor to forward copy to the superclass correctly. Required for MSVC.
|
inline |
Move constructor to forward move to the superclass correctly. Required for MSVC.
|
inline |
Default constructor - initializes to NULL.
|
inlineexplicit |
Constructor from cl_context - takes ownership.
This effectively transfers ownership of a refcount on the cl_context into the new Context object.
|
inlinestatic |
Returns a singleton context including all devices of CL_DEVICE_TYPE_DEFAULT.
|
inline |
Wrapper for clGetContextInfo().
|
inline |
Wrapper for clGetContextInfo() that returns by value.
|
inline |
Gets a list of supported image formats.
Wraps clGetSupportedImageFormats().
Copy assignment to forward copy to the superclass correctly. Required for MSVC.
Move assignment to forward move to the superclass correctly. Required for MSVC.
|
inline |
Assignment operator from cl_context - takes ownership.
This effectively transfers ownership of a refcount on the rhs and calls clReleaseContext() on the value previously held by this instance.
Modify the default context to be used by subsequent operations. Will only set the default if no default was previously created.