Create an accessor for the given @p array. * * @param[in, out] array To be accessed array. * * @note The CL memory is mapped by the constructor. * */
| 45 | * |
| 46 | */ |
| 47 | CLArrayAccessor(CLArray<T> &array) : _array{array} |
| 48 | { |
| 49 | _array.map(); |
| 50 | } |
| 51 | |
| 52 | /** Prevent instances of this class from being copy constructed */ |
| 53 | CLArrayAccessor(const CLArrayAccessor &) = delete; |