alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::ViewConst< TView > Struct Template Reference

A non-modifiable wrapper around a view. This view acts as the wrapped view, but the underlying data is only exposed const-qualified. More...

#include <ViewConst.hpp>

+ Inheritance diagram for alpaka::ViewConst< TView >:

Public Member Functions

ALPAKA_FN_HOST ViewConst (TView &&view)
 
ALPAKA_FN_HOST ViewConst (TView const &view)
 
- Public Member Functions inherited from alpaka::internal::ViewAccessOps< ViewConst< TView > >
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

TView m_view
 

Detailed Description

template<typename TView>
struct alpaka::ViewConst< TView >

A non-modifiable wrapper around a view. This view acts as the wrapped view, but the underlying data is only exposed const-qualified.

Definition at line 21 of file ViewConst.hpp.

Constructor & Destructor Documentation

◆ ViewConst() [1/2]

template<typename TView >
ALPAKA_FN_HOST alpaka::ViewConst< TView >::ViewConst ( TView const &  view)
inline

Definition at line 29 of file ViewConst.hpp.

◆ ViewConst() [2/2]

template<typename TView >
ALPAKA_FN_HOST alpaka::ViewConst< TView >::ViewConst ( TView &&  view)
inline

Definition at line 33 of file ViewConst.hpp.

Member Data Documentation

◆ m_view

template<typename TView >
TView alpaka::ViewConst< TView >::m_view

Definition at line 37 of file ViewConst.hpp.


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