mesa  18.2.8
About: Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics (main library code).
  Fossies Dox: mesa-18.2.8.tar.xz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

cl::Platform Class Reference

Platform interface. More...

#include <cl.hpp>

Inheritance diagram for cl::Platform:
Collaboration diagram for cl::Platform:

Public Member Functions

 Platform (cl_platform_id platform)
 Platform ()
 Platform (const Platform &platform)
Platformoperator= (const Platform &rhs)
cl_int getInfo (cl_platform_info name, STRING_CLASS *param) const
template<cl_int name>
detail::param_traits< detail::cl_platform_info, name >::param_type getInfo (cl_int *err=NULL) const
cl_int getDevices (cl_device_type type, VECTOR_CLASS< Device > *devices) const
- Public Member Functions inherited from cl::detail::Wrapper< cl_platform_id >
 Wrapper ()
 Wrapper (const Wrapper< cl_type > &rhs)
 ~Wrapper ()
Wrapper< cl_type > & operator= (const Wrapper< cl_type > &rhs)
cl_type operator() () const
cl_typeoperator() ()

Static Public Member Functions

static const Platform null ()
static cl_int get (VECTOR_CLASS< Platform > *platforms)

Additional Inherited Members

- Public Types inherited from cl::detail::Wrapper< cl_platform_id >
typedef cl_platform_id cl_type
- Protected Member Functions inherited from cl::detail::Wrapper< cl_platform_id >
cl_int retain () const
cl_int release () const
- Protected Attributes inherited from cl::detail::Wrapper< cl_platform_id >
cl_type object_

Detailed Description

Platform interface.

Definition at line 1258 of file cl.hpp.

Constructor & Destructor Documentation

◆ Platform() [1/3]

cl::Platform::Platform ( cl_platform_id  platform)

Definition at line 1263 of file cl.hpp.

References cl::detail::Wrapper< cl_platform_id >::object_, and platform.

◆ Platform() [2/3]

cl::Platform::Platform ( )

Definition at line 1265 of file cl.hpp.

◆ Platform() [3/3]

cl::Platform::Platform ( const Platform platform)

Definition at line 1267 of file cl.hpp.

Member Function Documentation

◆ get()

static cl_int cl::Platform::get ( VECTOR_CLASS< Platform > *  platforms)

Definition at line 1390 of file cl.hpp.

References CL_SUCCESS, clGetPlatformIDs(), cl::detail::errHandler(), and NULL.

◆ getDevices()

cl_int cl::Platform::getDevices ( cl_device_type  type,
VECTOR_CLASS< Device > *  devices 
) const

◆ getInfo() [1/2]

cl_int cl::Platform::getInfo ( cl_platform_info  name,
) const

◆ getInfo() [2/2]

template<cl_int name>
detail::param_traits<detail::cl_platform_info, name>::param_type cl::Platform::getInfo ( cl_int *  err = NULL) const

Definition at line 1286 of file cl.hpp.

References getInfo(), and NULL.

◆ null()

static const Platform cl::Platform::null ( )

◆ operator=()

Platform& cl::Platform::operator= ( const Platform rhs)

Definition at line 1269 of file cl.hpp.

References cl::detail::Wrapper< T >::operator=().

The documentation for this class was generated from the following file: