CellGPU  0.8.0
GPU-accelerated simulations of cells
Public Member Functions | Public Attributes | List of all members
ArrayHandle< T > Class Template Reference

A mechanism for accessing data in GPUArray objects's. More...

#include <gpuarray.h>

Public Member Functions

 ArrayHandle (const GPUArray< T > &gpu_array, const access_location::Enum location=access_location::host, const access_mode::Enum mode=access_mode::readwrite)
 the only constructor takes a reference to the GPUArray, a location and a mode
 
void operator= (const ArrayHandle &rhs)
 

Public Attributes

T * data
 a pointer to the GPUArray's data
 

Detailed Description

template<class T>
class ArrayHandle< T >

A mechanism for accessing data in GPUArray objects's.

The ArrayHandle, well, handles the data in the GPUArray. Given, e.g., an ArrayHandle<int> h(gpuarray,access_location::host, access_mode::readwrite); The user would access one of the integers via h.data[i] on the host or a direct acces on the device


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