alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
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 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: