OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
MultiArrayViewGpu< BaseT, Nup, N > Class Template Reference

Detailed Description

template<typename BaseT, unsigned int Nup, unsigned int N>
class MultiArrayViewGpu< BaseT, Nup, N >

Provides a view on data from an array of blocks, yielding items at the same offset within blocks through the block array.

Template Parameters
BaseT
Nup
N

Definition at line 44 of file BlockMapGpu_dimensionalityWrappers.cuh.

Public Member Functions

__device__ __host__ MultiArrayViewGpu (BaseT *ptr)
 
__device__ __host__ MultiArrayViewGpu< array_slice, ext::value, N-1 > operator[] (int i)
 

Private Types

typedef std::remove_extent< BaseT >::type array_slice
 
typedef std::extent< BaseT > ext
 

Private Attributes

BaseT * ptr
 

Member Typedef Documentation

◆ array_slice

template<typename BaseT , unsigned int Nup, unsigned int N>
typedef std::remove_extent<BaseT>::type MultiArrayViewGpu< BaseT, Nup, N >::array_slice
private

Definition at line 46 of file BlockMapGpu_dimensionalityWrappers.cuh.

◆ ext

template<typename BaseT , unsigned int Nup, unsigned int N>
typedef std::extent<BaseT> MultiArrayViewGpu< BaseT, Nup, N >::ext
private

Definition at line 47 of file BlockMapGpu_dimensionalityWrappers.cuh.

Constructor & Destructor Documentation

◆ MultiArrayViewGpu()

template<typename BaseT , unsigned int Nup, unsigned int N>
__device__ __host__ MultiArrayViewGpu< BaseT, Nup, N >::MultiArrayViewGpu ( BaseT *  ptr)
inline

Definition at line 52 of file BlockMapGpu_dimensionalityWrappers.cuh.

Member Function Documentation

◆ operator[]()

template<typename BaseT , unsigned int Nup, unsigned int N>
__device__ __host__ MultiArrayViewGpu< array_slice, ext::value, N-1 > MultiArrayViewGpu< BaseT, Nup, N >::operator[] ( int  i)
inline

Definition at line 56 of file BlockMapGpu_dimensionalityWrappers.cuh.

Field Documentation

◆ ptr

template<typename BaseT , unsigned int Nup, unsigned int N>
BaseT* MultiArrayViewGpu< BaseT, Nup, N >::ptr
private

Definition at line 49 of file BlockMapGpu_dimensionalityWrappers.cuh.


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