walberla::gpu::FieldAccessorXYZ< T > Class Template Reference

#include <FieldAccessorXYZ.h>

Public Member Functions

 FieldAccessorXYZ (char *ptr, size_t xOffset, size_t yOffset, size_t zOffset, size_t fOffset)
 
__device__ void set (uint3 blockIdx, uint3 threadIdx)
 
__device__ T & get ()
 
__device__ T & get (int f)
 
__device__ T & getNeighbor (int cx, int cy, int cz) const
 
__device__ T & getNeighbor (int cx, int cy, int cz, int cf)
 

Protected Attributes

char * ptr_
 
size_t xOffset_
 
size_t yOffset_
 
size_t zOffset_
 
size_t fOffset_
 

Constructor & Destructor Documentation

◆ FieldAccessorXYZ()

template<typename T >
walberla::gpu::FieldAccessorXYZ< T >::FieldAccessorXYZ ( char *  ptr,
size_t  xOffset,
size_t  yOffset,
size_t  zOffset,
size_t  fOffset 
)
inline

Member Function Documentation

◆ get() [1/2]

template<typename T >
__device__ T& walberla::gpu::FieldAccessorXYZ< T >::get ( )
inline

◆ get() [2/2]

template<typename T >
__device__ T& walberla::gpu::FieldAccessorXYZ< T >::get ( int  f)
inline

◆ getNeighbor() [1/2]

template<typename T >
__device__ T& walberla::gpu::FieldAccessorXYZ< T >::getNeighbor ( int  cx,
int  cy,
int  cz 
) const
inline

◆ getNeighbor() [2/2]

template<typename T >
__device__ T& walberla::gpu::FieldAccessorXYZ< T >::getNeighbor ( int  cx,
int  cy,
int  cz,
int  cf 
)
inline

◆ set()

template<typename T >
__device__ void walberla::gpu::FieldAccessorXYZ< T >::set ( uint3  blockIdx,
uint3  threadIdx 
)
inline

Member Data Documentation

◆ fOffset_

template<typename T >
size_t walberla::gpu::FieldAccessorXYZ< T >::fOffset_
protected

◆ ptr_

template<typename T >
char* walberla::gpu::FieldAccessorXYZ< T >::ptr_
protected

◆ xOffset_

template<typename T >
size_t walberla::gpu::FieldAccessorXYZ< T >::xOffset_
protected

◆ yOffset_

template<typename T >
size_t walberla::gpu::FieldAccessorXYZ< T >::yOffset_
protected

◆ zOffset_

template<typename T >
size_t walberla::gpu::FieldAccessorXYZ< T >::zOffset_
protected

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