SplitDomain< T, Dim > Struct Template Reference

SplitDomain implements a basic template meta-program to split each dimension separately of the multidimensional domain. More...

#include <Split.h>

List of all members.

Public Types

enum  { strided = !DomainTraits<T>::unitStride }

Static Public Member Functions

static void split (const T &a, T &b, T &c)
static void split (const T &a, int axis, T &b, T &c)
static void split (const T &a, int axis, int leftLength, T &b, T &c)


Detailed Description

template<class T, int Dim>
struct SplitDomain< T, Dim >

SplitDomain implements a basic template meta-program to split each dimension separately of the multidimensional domain.

It uses SplitDomainSingle to do the single-domain splits, telling that struct whether the domain has unit stride or not. A general version of SplitDomain is defined, to split the domain in the 'Dim' dimension, and then a specialization is provided for Dim==1 that stops the metaprogram recursion.


Member Enumeration Documentation

template<class T, int Dim>
anonymous enum

Enumerator:
strided 


Member Function Documentation

template<class T, int Dim>
static void SplitDomain< T, Dim >::split ( const T &  a,
T &  b,
T &  c 
) [inline, static]

template<class T, int Dim>
static void SplitDomain< T, Dim >::split ( const T &  a,
int  axis,
T &  b,
T &  c 
) [inline, static]

template<class T, int Dim>
static void SplitDomain< T, Dim >::split ( const T &  a,
int  axis,
int  leftLength,
T &  b,
T &  c 
) [inline, static]


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

Generated on Wed Mar 16 06:20:38 2011 for FreePOOMA by  doxygen 1.5.9