Handle class the effectively represents a smart pointer for OpenCL handles.
More...
#include <handle.hpp>
Public Member Functions |
| handle () |
| handle (const OCL_TYPE &_something) |
| handle (const handle &h) |
| ~handle () |
handle & | operator= (const handle &h) |
handle & | operator= (const OCL_TYPE &_something) |
| operator OCL_TYPE () const |
handle & | swap (handle &other) |
| Swaps the OpenCL handle of two handle objects.
|
void | inc () |
| Manually increment the OpenCL reference count. Typically called automatically, but is necessary if user-supplied memory objects are wrapped.
|
void | dec () |
| Manually decrement the OpenCL reference count. Typically called automatically, but might be useful with user-supplied memory objects.
|
Detailed Description
template<class OCL_TYPE>
class viennacl::ocl::handle< OCL_TYPE >
Handle class the effectively represents a smart pointer for OpenCL handles.
Constructor & Destructor Documentation
handle |
( |
const OCL_TYPE & |
_something |
) |
[inline] |
Member Function Documentation
Manually decrement the OpenCL reference count. Typically called automatically, but might be useful with user-supplied memory objects.
Manually increment the OpenCL reference count. Typically called automatically, but is necessary if user-supplied memory objects are wrapped.
operator OCL_TYPE |
( |
|
) |
const [inline] |
handle& operator= |
( |
const OCL_TYPE & |
_something |
) |
[inline] |
Swaps the OpenCL handle of two handle objects.
The documentation for this class was generated from the following file:
- /data/development/ViennaCL/dev/viennacl/ocl/handle.hpp