OpenPose
1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
|
Class interface for cl_platform_id. More...
#include <cl2.hpp>
Inherits cl::detail::Wrapper< cl_platform_id >.
Public Member Functions | |
Platform () | |
Default constructor - initializes to NULL. More... | |
Platform (const cl_platform_id &platform, bool retainObject=false) | |
Constructor from cl_platform_id. More... | |
Platform & | operator= (const cl_platform_id &rhs) |
Assignment operator from cl_platform_id. More... | |
cl_int | getInfo (cl_platform_info name, string *param) const |
Wrapper for clGetPlatformInfo(). More... | |
template<cl_int name> | |
detail::param_traits < detail::cl_platform_info, name >::param_type | getInfo (cl_int *err=NULL) const |
Wrapper for clGetPlatformInfo() that returns by value. More... | |
cl_int | getDevices (cl_device_type type, vector< Device > *devices) const |
Gets a list of devices for this platform. More... | |
cl_int | unloadCompiler () |
Wrapper for clUnloadCompiler(). 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 Platform | getDefault (cl_int *errResult=NULL) |
static Platform | setDefault (const Platform &default_platform) |
static cl_int | get (vector< Platform > *platforms) |
Gets a list of available platforms. More... | |
static cl_int | get (Platform *platform) |
Gets the first available platform. More... | |
static Platform | get (cl_int *errResult=NULL) |
Gets the first available platform, returning it by value. More... | |
Additional Inherited Members | |
![]() | |
typedef cl_platform_id | cl_type |
![]() | |
cl_int | retain () const |
cl_int | release () const |
![]() | |
cl_type | object_ |
Class interface for cl_platform_id.
|
inline |
Default constructor - initializes to NULL.
|
inlineexplicit |
Constructor from cl_platform_id.
retainObject | will cause the constructor to retain its cl object. Defaults to false to maintain compatibility with earlier versions. This simply copies the platform ID value, which is an inexpensive operation. |
Gets a list of available platforms.
Wraps clGetPlatformIDs().
|
inlinestatic |
Gets the first available platform.
Wraps clGetPlatformIDs(), returning the first result.
|
inlinestatic |
Gets the first available platform, returning it by value.
|
inlinestatic |
Gets a list of devices for this platform.
Wraps clGetDeviceIDs().
|
inline |
Wrapper for clGetPlatformInfo().
|
inline |
Wrapper for clGetPlatformInfo() that returns by value.
|
inline |
Assignment operator from cl_platform_id.
This simply copies the platform ID value, which is an inexpensive operation.
Modify the default platform to be used by subsequent operations. Will only set the default if no default was previously created.
|
inline |
Wrapper for clUnloadCompiler().