C++ Object to handle confusing parts

Hello there. I’m learning how to use C++ bindings, and I’d like to know if is there a class to handle those confusing parts, such as creating a context, etc.

I have started my one, but it’s not complete yet. Anyway, I’d like to you guys take a look at it. :smiley:
By the way, it’s based on this example, by Erik Smistad. The original example can be found here: http://www.thebigblob.com/using-the-cpp … or-opencl/

The class code: http://codepad.org/GIfxDgay
An example of usage, along with kernels: http://codepad.org/YsAD8GpL

If there already a class, please, warn me!