20 template<
typename TView>
23 static_assert(!std::is_const_v<TView>,
"ViewConst must be instantiated with a non-const type");
25 !std::is_reference_v<TView>,
26 "This is not implemented");
40 template<
typename TView>
45 template<
typename TView>
50 template<
typename TView>
59 template<
typename TView>
64 template<
typename TView>
71 template<
typename TView>
80 template<
typename TView>
92 template<
typename TView>
101 template<
typename TView>
110 template<
typename TView>
The alpaka accelerator library.
ViewConst(TView) -> ViewConst< std::decay_t< TView >>
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto getExtents(T const &object) -> Vec< Dim< T >, Idx< T >>
ALPAKA_FN_HOST auto getPitchesInBytes(TView const &view) -> Vec< Dim< TView >, Idx< TView >>
ALPAKA_FN_HOST auto getPtrNative(TView const &view) -> Elem< TView > const *
Gets the native pointer of the memory view.
ALPAKA_FN_HOST auto getDev(T const &t)
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto getOffsets(T const &object) -> Vec< Dim< T >, Idx< T >>
A non-modifiable wrapper around a view. This view acts as the wrapped view, but the underlying data i...
ALPAKA_FN_HOST ViewConst(TView const &view)
ALPAKA_FN_HOST ViewConst(TView &&view)
The dimension getter type trait.
typename ElemType< TView >::type const type
static ALPAKA_FN_HOST auto getDev(ViewConst< TView > const &view)
ALPAKA_FN_HOST auto operator()(ViewConst< TView > const &view) const
The GetExtents trait for getting the extents of an object as an alpaka::Vec.
ALPAKA_FN_HOST auto operator()(ViewConst< TView > const &view) const
The GetOffsets trait for getting the offsets of an object as an alpaka::Vec.
ALPAKA_FN_HOST auto operator()(ViewConst< TView > const &view) const
Customization point for getPitchesInBytes. The default implementation uses the extent to calculate th...
static ALPAKA_FN_HOST auto getPtrNative(ViewConst< TView > const &view) -> TElem const *
typename ElemType< TView >::type TElem
The native pointer get trait.