alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::ViewPlainPtr< TDev, TElem, TDim, TIdx > Struct Template Referencefinal

The memory view to wrap plain pointers. More...

#include <ViewPlainPtr.hpp>

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

Public Member Functions

template<typename TExtent , typename TPitch >
ALPAKA_FN_HOST ViewPlainPtr (TElem *pMem, TDev dev, TExtent const &extent, TPitch pitchBytes)
 
template<typename TExtent >
ALPAKA_FN_HOST ViewPlainPtr (TElem *pMem, TDev dev, TExtent const &extent=TExtent())
 
- Public Member Functions inherited from alpaka::internal::ViewAccessOps< ViewPlainPtr< 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

TDev m_dev
 
Vec< TDim, TIdx > m_extentElements
 
Vec< TDim, TIdx > m_pitchBytes
 
TElem * m_pMem
 

Detailed Description

template<typename TDev, typename TElem, typename TDim, typename TIdx>
struct alpaka::ViewPlainPtr< TDev, TElem, TDim, TIdx >

The memory view to wrap plain pointers.

Definition at line 23 of file ViewPlainPtr.hpp.

Constructor & Destructor Documentation

◆ ViewPlainPtr() [1/2]

template<typename TDev , typename TElem , typename TDim , typename TIdx >
template<typename TExtent >
ALPAKA_FN_HOST alpaka::ViewPlainPtr< TDev, TElem, TDim, TIdx >::ViewPlainPtr ( TElem *  pMem,
TDev  dev,
TExtent const &  extent = TExtent() 
)
inline

Definition at line 28 of file ViewPlainPtr.hpp.

◆ ViewPlainPtr() [2/2]

template<typename TDev , typename TElem , typename TDim , typename TIdx >
template<typename TExtent , typename TPitch >
ALPAKA_FN_HOST alpaka::ViewPlainPtr< TDev, TElem, TDim, TIdx >::ViewPlainPtr ( TElem *  pMem,
TDev  dev,
TExtent const &  extent,
TPitch  pitchBytes 
)
inline

Definition at line 34 of file ViewPlainPtr.hpp.

Member Data Documentation

◆ m_dev

template<typename TDev , typename TElem , typename TDim , typename TIdx >
TDev alpaka::ViewPlainPtr< TDev, TElem, TDim, TIdx >::m_dev

Definition at line 43 of file ViewPlainPtr.hpp.

◆ m_extentElements

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

Definition at line 44 of file ViewPlainPtr.hpp.

◆ m_pitchBytes

template<typename TDev , typename TElem , typename TDim , typename TIdx >
Vec<TDim, TIdx> alpaka::ViewPlainPtr< TDev, TElem, TDim, TIdx >::m_pitchBytes

Definition at line 45 of file ViewPlainPtr.hpp.

◆ m_pMem

template<typename TDev , typename TElem , typename TDim , typename TIdx >
TElem* alpaka::ViewPlainPtr< TDev, TElem, TDim, TIdx >::m_pMem

Definition at line 42 of file ViewPlainPtr.hpp.


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