Classes | Public Types | Static Public Member Functions | Static Public Attributes

LibGeoDecomp::TopologiesHelpers::Topology< DIMENSIONS, WRAP_DIM0, WRAP_DIM1, WRAP_DIM2 > Class Template Reference

#include <topologies.h>

Collaboration diagram for LibGeoDecomp::TopologiesHelpers::Topology< DIMENSIONS, WRAP_DIM0, WRAP_DIM1, WRAP_DIM2 >:
Collaboration graph
[legend]

List of all members.

Classes

class  WrapsAxis

Public Types

typedef RawTopology
< DIMENSIONS, WRAP_DIM0,
WRAP_DIM1, WRAP_DIM2 > 
RawTopologyType

Static Public Member Functions

template<typename GRID , int DIM>
static const GRID::CellType & locate (const GRID &grid, const Coord< DIM > &coord)
template<typename GRID >
static GRID::CellType & locate (GRID &grid, const Coord< DIMENSIONS > &coord)
static Coord< DIMnormalize (const Coord< DIMENSIONS > &coord, const Coord< DIMENSIONS > &dimensions)
static bool isOutOfBounds (const Coord< DIM > &coord, const Coord< DIM > &dim)
static bool wrapsAxis (const int &dim)
 Checks whether the current topoloy uses periodic boundary conditions on the edges of the given dimendion dim.

Static Public Attributes

static const int DIM = DIMENSIONS

template<int DIMENSIONS, bool WRAP_DIM0 = false, bool WRAP_DIM1 = false, bool WRAP_DIM2 = false>
class LibGeoDecomp::TopologiesHelpers::Topology< DIMENSIONS, WRAP_DIM0, WRAP_DIM1, WRAP_DIM2 >


Member Typedef Documentation

template<int DIMENSIONS, bool WRAP_DIM0 = false, bool WRAP_DIM1 = false, bool WRAP_DIM2 = false>
typedef RawTopology<DIMENSIONS, WRAP_DIM0, WRAP_DIM1, WRAP_DIM2> LibGeoDecomp::TopologiesHelpers::Topology< DIMENSIONS, WRAP_DIM0, WRAP_DIM1, WRAP_DIM2 >::RawTopologyType

Member Function Documentation

template<int DIMENSIONS, bool WRAP_DIM0 = false, bool WRAP_DIM1 = false, bool WRAP_DIM2 = false>
static bool LibGeoDecomp::TopologiesHelpers::Topology< DIMENSIONS, WRAP_DIM0, WRAP_DIM1, WRAP_DIM2 >::isOutOfBounds ( const Coord< DIM > &  coord,
const Coord< DIM > &  dim 
) [inline, static]
template<int DIMENSIONS, bool WRAP_DIM0 = false, bool WRAP_DIM1 = false, bool WRAP_DIM2 = false>
template<typename GRID , int DIM>
static const GRID::CellType& LibGeoDecomp::TopologiesHelpers::Topology< DIMENSIONS, WRAP_DIM0, WRAP_DIM1, WRAP_DIM2 >::locate ( const GRID &  grid,
const Coord< DIM > &  coord 
) [inline, static]
template<int DIMENSIONS, bool WRAP_DIM0 = false, bool WRAP_DIM1 = false, bool WRAP_DIM2 = false>
template<typename GRID >
static GRID::CellType& LibGeoDecomp::TopologiesHelpers::Topology< DIMENSIONS, WRAP_DIM0, WRAP_DIM1, WRAP_DIM2 >::locate ( GRID &  grid,
const Coord< DIMENSIONS > &  coord 
) [inline, static]
template<int DIMENSIONS, bool WRAP_DIM0 = false, bool WRAP_DIM1 = false, bool WRAP_DIM2 = false>
static Coord<DIM> LibGeoDecomp::TopologiesHelpers::Topology< DIMENSIONS, WRAP_DIM0, WRAP_DIM1, WRAP_DIM2 >::normalize ( const Coord< DIMENSIONS > &  coord,
const Coord< DIMENSIONS > &  dimensions 
) [inline, static]
template<int DIMENSIONS, bool WRAP_DIM0 = false, bool WRAP_DIM1 = false, bool WRAP_DIM2 = false>
static bool LibGeoDecomp::TopologiesHelpers::Topology< DIMENSIONS, WRAP_DIM0, WRAP_DIM1, WRAP_DIM2 >::wrapsAxis ( const int &  dim  )  [inline, static]

Checks whether the current topoloy uses periodic boundary conditions on the edges of the given dimendion dim.

Only use this when you need to set dim at runtime. In every other case WrapsAxis<DIM>::VALUE is the prefered way of checking.


Member Data Documentation

template<int DIMENSIONS, bool WRAP_DIM0 = false, bool WRAP_DIM1 = false, bool WRAP_DIM2 = false>
const int LibGeoDecomp::TopologiesHelpers::Topology< DIMENSIONS, WRAP_DIM0, WRAP_DIM1, WRAP_DIM2 >::DIM = DIMENSIONS [static]

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