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

Last dimension Accessing brick elements using []. More...

#include <brick.h>

Public Member Functions

FORCUDA _BrickAccessor (T *par, unsigned b, unsigned pos, unsigned nvec, unsigned wvec)
 
FORCUDA bElemoperator[] (unsigned i)
 

Public Attributes

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

Detailed Description

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

Last dimension Accessing brick elements using [].

Constructor & Destructor Documentation

◆ _BrickAccessor()

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

Member Function Documentation

◆ operator[]()

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

Member Data Documentation

◆ b

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

Reference (center) brick.

◆ nvec

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

Which vector.

◆ par

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

parent Brick data structure reference

◆ pos

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

Accumulative position within adjacency list.

◆ wvec

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

Position within a vector.


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