Bolt  1.3
C++ template library with support for OpenCL
Public Member Functions | List of all members
bolt::cl::device_vector< T >::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)
 
reference_base< Container > & operator= (reference_base< Container > &rhs)
 
Container & getContainer () const
 A get accessor function to return the encapsulated device_vector.
 
size_type getIndex () const
 

Detailed Description

template<typename T>
template<typename Container>
class bolt::cl::device_vector< T >::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: