Helper class implementing an array on the host. Default case: No conversion necessary. 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 () | |
void * | get () |
vcl_size_t | raw_size () const |
vcl_size_t | element_size () const |
vcl_size_t | size () const |
template<typename U > | |
void | set (vcl_size_t index, U value) |
void | raw_resize (mem_handle const &, 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... | |
cpu_type | operator[] (vcl_size_t index) const |
Helper class implementing an array on the host. Default case: No conversion necessary.
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |