37 #ifndef PCL_GPU_CONTAINER_DEVICE_MEMORY_IMPL_HPP_
38 #define PCL_GPU_CONTAINER_DEVICE_MEMORY_IMPL_HPP_
47 template<
class T>
inline T*
53 template<
class T>
inline const T*
56 return (
const T*)data_;
59 template <
class U>
inline DeviceMemory::operator
63 result.
data = (U*)ptr<U>();
64 result.
size = sizeBytes_/
sizeof(U);
72 return (T*)((
char*)data_ + y_arg * step_);
75 template<
class T>
const T*
78 return (
const T*)((
const char*)data_ + y_arg * step_);
81 template <
class U> DeviceMemory2D::operator
85 result.
data = (U*)ptr<U>();
90 template <
class U> DeviceMemory2D::operator
94 result.
data = (U*)ptr<U>();
96 result.
cols = colsBytes_/
sizeof(U);