Brick Library 0.1
Performance-portable stencil datalayout & codegen
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
_BrickAccessor< T, Dim< D, BDims... >, Dim< F, Folds... >, bool > Struct Template Reference

When the number of Brick dimensions and Fold dimensions are the same Accessing brick elements using []. More...

#include <brick.h>

Public Member Functions

FORCUDA _BrickAccessor (T *par, unsigned b, unsigned pos, unsigned nvec, unsigned wvec)
 
FORCUDA _BrickAccessor< T, Dim< BDims... >, Dim< Folds... >, bool > operator[] (unsigned i)
 

Public Attributes

T * par
 parent Brick data structure reference
 
unsigned b
 Reference (center) brick.
 
unsigned pos
 Accumulative position within adjacency list.
 
unsigned nvec
 Which vector.
 
unsigned wvec
 Position within a vector.
 

Detailed Description

template<typename T, unsigned D, unsigned F, unsigned ... BDims, unsigned ... Folds>
struct _BrickAccessor< T, Dim< D, BDims... >, Dim< F, Folds... >, bool >

When the number of Brick dimensions and Fold dimensions are the same Accessing brick elements using [].

Template Parameters
TElement type
DCAR of brick dimension
BDimsCDR of brick dimension
FCAR of vector folds
FoldsCDR of vector folds

Constructor & Destructor Documentation

◆ _BrickAccessor()

template<typename T , unsigned D, unsigned F, unsigned ... BDims, unsigned ... Folds>
FORCUDA _BrickAccessor< T, Dim< D, BDims... >, Dim< F, Folds... >, bool >::_BrickAccessor ( T *  par,
unsigned  b,
unsigned  pos,
unsigned  nvec,
unsigned  wvec 
)
inline

Member Function Documentation

◆ operator[]()

template<typename T , unsigned D, unsigned F, unsigned ... BDims, unsigned ... Folds>
FORCUDA _BrickAccessor< T, Dim< BDims... >, Dim< Folds... >, bool > _BrickAccessor< T, Dim< D, BDims... >, Dim< F, Folds... >, bool >::operator[] ( unsigned  i)
inline

Member Data Documentation

◆ b

template<typename T , unsigned D, unsigned F, unsigned ... BDims, unsigned ... Folds>
unsigned _BrickAccessor< T, Dim< D, BDims... >, Dim< F, Folds... >, bool >::b

Reference (center) brick.

◆ nvec

template<typename T , unsigned D, unsigned F, unsigned ... BDims, unsigned ... Folds>
unsigned _BrickAccessor< T, Dim< D, BDims... >, Dim< F, Folds... >, bool >::nvec

Which vector.

◆ par

template<typename T , unsigned D, unsigned F, unsigned ... BDims, unsigned ... Folds>
T* _BrickAccessor< T, Dim< D, BDims... >, Dim< F, Folds... >, bool >::par

parent Brick data structure reference

◆ pos

template<typename T , unsigned D, unsigned F, unsigned ... BDims, unsigned ... Folds>
unsigned _BrickAccessor< T, Dim< D, BDims... >, Dim< F, Folds... >, bool >::pos

Accumulative position within adjacency list.

◆ wvec

template<typename T , unsigned D, unsigned F, unsigned ... BDims, unsigned ... Folds>
unsigned _BrickAccessor< T, Dim< D, BDims... >, Dim< F, Folds... >, bool >::wvec

Position within a vector.


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