OpenCL C++ Wrapper API 1.1
 All Classes Namespaces Files Functions Variables Typedefs Defines
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
cl::detail::Wrapper< T > Class Template Reference

#include <cl.hpp>

List of all members.

Public Types

typedef T cl_type

Public Member Functions

 Wrapper ()
 Wrapper (const cl_type &obj)
 ~Wrapper ()
 Wrapper (const Wrapper< cl_type > &rhs)
Wrapper< cl_type > & operator= (const Wrapper< cl_type > &rhs)
Wrapper< cl_type > & operator= (const cl_type &rhs)
cl_type operator() () const
cl_typeoperator() ()

Protected Member Functions

cl_int retain () const
cl_int release () const

Protected Attributes

cl_type object_

Detailed Description

template<typename T>
class cl::detail::Wrapper< T >

Definition at line 1211 of file cl.hpp.


Member Typedef Documentation

template<typename T>
typedef T cl::detail::Wrapper< T >::cl_type

Definition at line 1214 of file cl.hpp.


Constructor & Destructor Documentation

template<typename T>
cl::detail::Wrapper< T >::Wrapper ( ) [inline]

Definition at line 1220 of file cl.hpp.

: object_(NULL) { }
template<typename T>
cl::detail::Wrapper< T >::Wrapper ( const cl_type obj) [inline]

Definition at line 1222 of file cl.hpp.

: object_(obj) { }
template<typename T>
cl::detail::Wrapper< T >::~Wrapper ( ) [inline]

Definition at line 1224 of file cl.hpp.

    {
        if (object_ != NULL) { release(); }
    }
template<typename T>
cl::detail::Wrapper< T >::Wrapper ( const Wrapper< cl_type > &  rhs) [inline]

Definition at line 1229 of file cl.hpp.

    {
        object_ = rhs.object_;
        if (object_ != NULL) { retain(); }
    }

Member Function Documentation

template<typename T>
cl_type cl::detail::Wrapper< T >::operator() ( ) const [inline]

Definition at line 1250 of file cl.hpp.

{ return object_; }
template<typename T>
cl_type& cl::detail::Wrapper< T >::operator() ( ) [inline]

Definition at line 1252 of file cl.hpp.

{ return object_; }
template<typename T>
Wrapper<cl_type>& cl::detail::Wrapper< T >::operator= ( const Wrapper< cl_type > &  rhs) [inline]

Definition at line 1235 of file cl.hpp.

    {
        if (object_ != NULL) { release(); }
        object_ = rhs.object_;
        if (object_ != NULL) { retain(); }
        return *this;
    }
template<typename T>
Wrapper<cl_type>& cl::detail::Wrapper< T >::operator= ( const cl_type rhs) [inline]
template<typename T>
cl_int cl::detail::Wrapper< T >::release ( ) const [inline, protected]

Definition at line 1261 of file cl.hpp.

template<typename T>
cl_int cl::detail::Wrapper< T >::retain ( ) const [inline, protected]

Definition at line 1256 of file cl.hpp.


Member Data Documentation

template<typename T>
cl_type cl::detail::Wrapper< T >::object_ [protected]

Definition at line 1217 of file cl.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Defines