37 #ifndef PCL_GPU_CONTAINER_DEVICE_MEMORY_IMPL_HPP_
38 #define PCL_GPU_CONTAINER_DEVICE_MEMORY_IMPL_HPP_
56 return (
const T*)data_;
63 result.
data = (U*)ptr<U>();
64 result.
size = sizeBytes_ /
sizeof(U);
73 return (T*)((
char*)data_ + y_arg * step_);
80 return (
const T*)((
const char*)data_ + y_arg * step_);
87 result.
data = (U*)ptr<U>();
96 result.
data = (U*)ptr<U>();
98 result.
cols = colsBytes_ /
sizeof(U);
T * ptr(int y_arg=0)
Returns pointer to given row in internal buffer.
T * ptr()
Returns pointer for internal buffer in GPU memory.
std::size_t step
stride between two consecutive rows in bytes.