Special host array type for conversion between OpenCL types and pure CPU types. More...
#include <util.hpp>
Public Member Functions | |
| typesafe_host_array () | |
| typesafe_host_array (mem_handle const &handle, vcl_size_t num=0) | |
| ~typesafe_host_array () | |
| template<typename U > | |
| void | set (vcl_size_t index, U value) |
| void * | get () |
| cpu_type | operator[] (vcl_size_t index) const |
| vcl_size_t | raw_size () const |
| vcl_size_t | element_size () const |
| vcl_size_t | size () const |
| void | raw_resize (mem_handle const &handle, vcl_size_t num) |
| Resize without initializing the new memory. More... | |
| void | resize (mem_handle const &handle, vcl_size_t num) |
| Resize including initialization of new memory (cf. std::vector<>) More... | |
Special host array type for conversion between OpenCL types and pure CPU types.
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |