|
RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
|
#include <TypedViewBase.hpp>
Public Types | |
| using | value_type = ValueType |
| using | pointer_type = PointerType |
| using | layout_type = LayoutType |
| using | linear_index_type = typename layout_type::IndexLinear |
| using | nc_value_type = typename std::remove_const< value_type >::type |
| using | nc_pointer_type = typename std::add_pointer< typename std::remove_const< typename std::remove_pointer< pointer_type >::type >::type >::type |
| using | Self = ViewBase< value_type, pointer_type, layout_type > |
| using | NonConstView = ViewBase< nc_value_type, nc_pointer_type, layout_type > |
| using | shifted_layout_type = typename add_offset< layout_type >::type |
| using | ShiftedView = ViewBase< value_type, pointer_type, shifted_layout_type > |
Public Member Functions | |
| constexpr | ViewBase ()=default |
| constexpr RAJA_INLINE | ViewBase (ViewBase const &)=default |
| constexpr RAJA_INLINE | ViewBase (ViewBase &&)=default |
| constexpr RAJA_INLINE ViewBase & | operator= (ViewBase const &)=default |
| constexpr RAJA_INLINE ViewBase & | operator= (ViewBase &&)=default |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE | ViewBase (pointer_type data, layout_type &&layout) |
| template<typename... Args> | |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE | ViewBase (pointer_type data, Args... dim_sizes) |
| template<bool IsConstView = std::is_const<value_type>::value> | |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE | ViewBase (typename std::enable_if< IsConstView, NonConstView >::type const &rhs) |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE void | set_data (PointerType data_ptr) |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE pointer_type const & | get_data () const |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE layout_type const & | get_layout () const |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE linear_index_type | size () const |
| template<camp::idx_t DIM> | |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE linear_index_type | get_dim_size () const |
| template<typename... Args> | |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE view_return_type_t< value_type, pointer_type, linear_index_type, layout_type, Args... > | operator() (Args... args) const |
| template<typename... Args> | |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE view_return_type_t< value_type, pointer_type, linear_index_type, layout_type, Args... > | operator[] (Args... args) const |
| template<size_t n_dims = layout_type::n_dims, typename IdxLin = linear_index_type> | |
| RAJA_HOST_DEVICE constexpr RAJA_INLINE ShiftedView | shift (const std::array< IdxLin, n_dims > &shift) |
Protected Attributes | |
| pointer_type | m_data |
| layout_type const | m_layout |
| using RAJA::internal::ViewBase< ValueType, PointerType, LayoutType >::value_type = ValueType |
| using RAJA::internal::ViewBase< ValueType, PointerType, LayoutType >::pointer_type = PointerType |
| using RAJA::internal::ViewBase< ValueType, PointerType, LayoutType >::layout_type = LayoutType |
| using RAJA::internal::ViewBase< ValueType, PointerType, LayoutType >::linear_index_type = typename layout_type::IndexLinear |
| using RAJA::internal::ViewBase< ValueType, PointerType, LayoutType >::nc_value_type = typename std::remove_const<value_type>::type |
| using RAJA::internal::ViewBase< ValueType, PointerType, LayoutType >::nc_pointer_type = typename std::add_pointer<typename std::remove_const< typename std::remove_pointer<pointer_type>::type>::type>::type |
| using RAJA::internal::ViewBase< ValueType, PointerType, LayoutType >::Self = ViewBase<value_type, pointer_type, layout_type> |
| using RAJA::internal::ViewBase< ValueType, PointerType, LayoutType >::NonConstView = ViewBase<nc_value_type, nc_pointer_type, layout_type> |
| using RAJA::internal::ViewBase< ValueType, PointerType, LayoutType >::shifted_layout_type = typename add_offset<layout_type>::type |
| using RAJA::internal::ViewBase< ValueType, PointerType, LayoutType >::ShiftedView = ViewBase<value_type, pointer_type, shifted_layout_type> |
|
constexprdefault |
|
constexprdefault |
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
constexprdefault |
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
protected |
|
protected |