Brick Library 0.1
Performance-portable stencil datalayout & codegen
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
grid_access< T, dim, d > Struct Template Reference

Generic base template for Accessing grid indices using []. More...

#include <brick-mpi.h>

Public Member Functions

 grid_access (T *self, unsigned ref)
 
grid_access< T, dim, d - 1 > operator[] (int i)
 

Public Attributes

T * self
 
unsigned ref
 

Detailed Description

template<typename T, unsigned dim, unsigned d>
struct grid_access< T, dim, d >

Generic base template for Accessing grid indices using [].

Template Parameters
Ttype of the BrickDecomp
dimnumber of dimensions
dcurrent dimension

Constructor & Destructor Documentation

◆ grid_access()

template<typename T , unsigned dim, unsigned d>
grid_access< T, dim, d >::grid_access ( T *  self,
unsigned  ref 
)
inline

Member Function Documentation

◆ operator[]()

template<typename T , unsigned dim, unsigned d>
grid_access< T, dim, d - 1 > grid_access< T, dim, d >::operator[] ( int  i)
inline

Member Data Documentation

◆ ref

template<typename T , unsigned dim, unsigned d>
unsigned grid_access< T, dim, d >::ref

◆ self

template<typename T , unsigned dim, unsigned d>
T* grid_access< T, dim, d >::self

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