Public Member Functions

LibGeoDecomp::SoAGridHelpers::GenIndex< DIM_X, DIM_Y, DIM_Z > Class Template Reference

A simple functor for wrapping index calculation within the SoA layout. More...

#include <soagrid.h>

List of all members.

Public Member Functions

int operator() (const Coord< 1 > &coord, const Coord< 3 > &edgeRadii) const
int operator() (const Coord< 2 > &coord, const Coord< 3 > &edgeRadii) const
int operator() (const Coord< 3 > &coord, const Coord< 3 > &edgeRadii) const

Detailed Description

template<int DIM_X, int DIM_Y, int DIM_Z>
class LibGeoDecomp::SoAGridHelpers::GenIndex< DIM_X, DIM_Y, DIM_Z >

A simple functor for wrapping index calculation within the SoA layout.

It's purpose is to hide differences in the calculation when using 1D, 2D or 3D coords. LibFlatArray internally always uses a 3D layout, thus our edgeRadii are also always 3D.


Member Function Documentation

template<int DIM_X, int DIM_Y, int DIM_Z>
int LibGeoDecomp::SoAGridHelpers::GenIndex< DIM_X, DIM_Y, DIM_Z >::operator() ( const Coord< 1 > &  coord,
const Coord< 3 > &  edgeRadii 
) const [inline]
template<int DIM_X, int DIM_Y, int DIM_Z>
int LibGeoDecomp::SoAGridHelpers::GenIndex< DIM_X, DIM_Y, DIM_Z >::operator() ( const Coord< 3 > &  coord,
const Coord< 3 > &  edgeRadii 
) const [inline]
template<int DIM_X, int DIM_Y, int DIM_Z>
int LibGeoDecomp::SoAGridHelpers::GenIndex< DIM_X, DIM_Y, DIM_Z >::operator() ( const Coord< 2 > &  coord,
const Coord< 3 > &  edgeRadii 
) const [inline]

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