OpenCL C++ Wrapper API 1.1
 All Classes Namespaces Files Functions Variables Typedefs Defines
Static Public Member Functions
cl::detail::GetInfoHelper< Func, STRING_CLASS > Struct Template Reference

#include <cl.hpp>

List of all members.

Static Public Member Functions

static cl_int get (Func f, cl_uint name, STRING_CLASS *param)

Detailed Description

template<typename Func>
struct cl::detail::GetInfoHelper< Func, STRING_CLASS >

Definition at line 808 of file cl.hpp.


Member Function Documentation

template<typename Func >
static cl_int cl::detail::GetInfoHelper< Func, STRING_CLASS >::get ( Func  f,
cl_uint  name,
STRING_CLASS param 
) [inline, static]

Definition at line 810 of file cl.hpp.

    {
        ::size_t required;
        cl_int err = f(name, 0, NULL, &required);
        if (err != CL_SUCCESS) {
            return err;
        }

        char* value = (char*) alloca(required);
        err = f(name, required, value, NULL);
        if (err != CL_SUCCESS) {
            return err;
        }

        *param = value;
        return CL_SUCCESS;
    }

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