Bolt  1.3
C++ template library with support for OpenCL
Public Member Functions | List of all members
bolt::amp::device_vector< T, CONT >::reference_base< Container > Class Template Reference

A writeable element of the container The location of an element of the container may not actually reside in system memory, but rather in device memory, which may be in a partitioned memory space. Access to a reference of the container results in a mapping and unmapping operation of device memory. More...

#include <device_vector.h>

Public Member Functions

 reference_base (Container &rhs, size_type index)
 
 operator value_type () const
 
reference_base< Container > & operator= (const value_type &rhs)
 
Container & getContainer () const
 A get accessor function to return the encapsulated device_vector.
 
size_type getIndex () const
 A get index function to return the index of the reference object within the AMP device_vector.
 

Detailed Description

template<typename T, template< typename, int RANK=1 > class CONT = concurrency::array_view>
template<typename Container>
class bolt::amp::device_vector< T, CONT >::reference_base< Container >

A writeable element of the container The location of an element of the container may not actually reside in system memory, but rather in device memory, which may be in a partitioned memory space. Access to a reference of the container results in a mapping and unmapping operation of device memory.

Note
The container element reference is implemented as a proxy object.
Warning
Use of this class can be slow: each operation on it results in a map/unmap sequence.

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