alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::ViewSubView< TDev, TElem, TDim, TIdx > Class Template Reference

A sub-view to a view. More...

#include <ViewSubView.hpp>

+ Inheritance diagram for alpaka::ViewSubView< TDev, TElem, TDim, TIdx >:

Public Member Functions

template<typename TQualifiedView , typename TOffsets , typename TExtent >
 ViewSubView (TQualifiedView &view, TExtent const &extentElements, TOffsets const &relativeOffsetsElements=TOffsets())
 Constructor. More...
 
template<typename TView >
 ViewSubView (TView &view)
 
template<typename TView >
 ViewSubView (TView const &view)
 
ALPAKA_FN_HOST auto computeNativePtr ()
 
- Public Member Functions inherited from alpaka::internal::ViewAccessOps< ViewSubView< TDev, TElem, TDim, TIdx > >
ALPAKA_FN_HOST auto at (Vec< Dim, TIdx > index) -> reference
 
ALPAKA_FN_HOST auto at (Vec< Dim, TIdx > index) const -> const_reference
 
ALPAKA_FN_HOST auto data () -> pointer
 
ALPAKA_FN_HOST auto data () const -> const_pointer
 
ALPAKA_FN_HOST auto operator* () -> reference
 
ALPAKA_FN_HOST auto operator* () const -> const_reference
 
ALPAKA_FN_HOST auto operator-> () -> pointer
 
ALPAKA_FN_HOST auto operator-> () const -> const_pointer
 
ALPAKA_FN_HOST auto operator[] (Idx i) -> reference
 
ALPAKA_FN_HOST auto operator[] (Idx i) const -> const_reference
 
ALPAKA_FN_HOST auto operator[] (Vec< Dim, TIdx > index) -> reference
 
ALPAKA_FN_HOST auto operator[] (Vec< Dim, TIdx > index) const -> const_reference
 

Public Attributes

Vec< TDim, TIdx > m_extentElements
 
TElem * m_nativePtr
 
Vec< TDim, TIdx > m_offsetsElements
 
ViewPlainPtr< Dev, TElem, TDim, TIdx > m_viewParentView
 

Detailed Description

template<typename TDev, typename TElem, typename TDim, typename TIdx>
class alpaka::ViewSubView< TDev, TElem, TDim, TIdx >

A sub-view to a view.

Definition at line 26 of file ViewSubView.hpp.

Constructor & Destructor Documentation

◆ ViewSubView() [1/3]

template<typename TDev , typename TElem , typename TDim , typename TIdx >
template<typename TQualifiedView , typename TOffsets , typename TExtent >
alpaka::ViewSubView< TDev, TElem, TDim, TIdx >::ViewSubView ( TQualifiedView &  view,
TExtent const &  extentElements,
TOffsets const &  relativeOffsetsElements = TOffsets() 
)
inline

Constructor.

Parameters
viewThe view this view is a sub-view of.
extentElementsThe extent in elements.
relativeOffsetsElementsThe offsets in elements.

Definition at line 38 of file ViewSubView.hpp.

◆ ViewSubView() [2/3]

template<typename TDev , typename TElem , typename TDim , typename TIdx >
template<typename TView >
alpaka::ViewSubView< TDev, TElem, TDim, TIdx >::ViewSubView ( TView const &  view)
inlineexplicit
Parameters
viewThe view this view is a sub-view of.

Definition at line 80 of file ViewSubView.hpp.

◆ ViewSubView() [3/3]

template<typename TDev , typename TElem , typename TDim , typename TIdx >
template<typename TView >
alpaka::ViewSubView< TDev, TElem, TDim, TIdx >::ViewSubView ( TView &  view)
inlineexplicit
Parameters
viewThe view this view is a sub-view of.

Definition at line 87 of file ViewSubView.hpp.

Member Function Documentation

◆ computeNativePtr()

template<typename TDev , typename TElem , typename TDim , typename TIdx >
ALPAKA_FN_HOST auto alpaka::ViewSubView< TDev, TElem, TDim, TIdx >::computeNativePtr ( )
inline

Definition at line 93 of file ViewSubView.hpp.

Member Data Documentation

◆ m_extentElements

template<typename TDev , typename TElem , typename TDim , typename TIdx >
Vec<TDim, TIdx> alpaka::ViewSubView< TDev, TElem, TDim, TIdx >::m_extentElements

Definition at line 109 of file ViewSubView.hpp.

◆ m_nativePtr

template<typename TDev , typename TElem , typename TDim , typename TIdx >
TElem* alpaka::ViewSubView< TDev, TElem, TDim, TIdx >::m_nativePtr

Definition at line 111 of file ViewSubView.hpp.

◆ m_offsetsElements

template<typename TDev , typename TElem , typename TDim , typename TIdx >
Vec<TDim, TIdx> alpaka::ViewSubView< TDev, TElem, TDim, TIdx >::m_offsetsElements

Definition at line 110 of file ViewSubView.hpp.

◆ m_viewParentView

template<typename TDev , typename TElem , typename TDim , typename TIdx >
ViewPlainPtr<Dev, TElem, TDim, TIdx> alpaka::ViewSubView< TDev, TElem, TDim, TIdx >::m_viewParentView

Definition at line 108 of file ViewSubView.hpp.


The documentation for this class was generated from the following file: