Public Member Functions

handle< OCL_TYPE > Class Template Reference

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 ()
handleoperator= (const handle &h)
handleoperator= (const OCL_TYPE &_something)
 operator OCL_TYPE () const
handleswap (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 (  )  [inline]
handle ( const OCL_TYPE &  _something  )  [inline]
handle ( const handle< OCL_TYPE > &  h  )  [inline]
~handle (  )  [inline]

Member Function Documentation

void dec (  )  [inline]

Manually decrement the OpenCL reference count. Typically called automatically, but might be useful with user-supplied memory objects.

void inc (  )  [inline]

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]
handle& operator= ( const handle< OCL_TYPE > &  h  )  [inline]
handle& swap ( handle< OCL_TYPE > &  other  )  [inline]

Swaps the OpenCL handle of two handle objects.


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