Can __global__ function included in a c++ class? c++ integration

I just want to make my C++ program running with CUDA.

For e.g.,

class clm

{

  public:

  __global__ void doComputeOnCUDA();

 void run()

{

 doComputeOnCUDA<<<16,16>>>();

}

}

Is this possible?

I have a Telsa C1060, with Ubuntu 9.10.