TouchesDomain< T1, T2, Dim > Struct Template Reference

TouchesDomain implements a basic template meta-program to compare each dimension separately of the multidimensional domains for whether they touch. More...

#include <Touches.h>

List of all members.

Public Types

enum  { strided }

Static Public Member Functions

static bool touches (const T1 &a, const T2 &b)


Detailed Description

template<class T1, class T2, int Dim>
struct TouchesDomain< T1, T2, Dim >

TouchesDomain implements a basic template meta-program to compare each dimension separately of the multidimensional domains for whether they touch.

It uses TouchesDomainSingle to do the single-domain comparison, telling that struct whether the domains have unit stride or not. A general version of TouchesDomain is defined, to compare the domains in the 'Dim' dimension, and then a specialization is provided for Dim==1 that stops the metaprogram recursion.


Member Enumeration Documentation

template<class T1 , class T2 , int Dim>
anonymous enum

Enumerator:
strided 


Member Function Documentation

template<class T1 , class T2 , int Dim>
static bool TouchesDomain< T1, T2, Dim >::touches ( const T1 &  a,
const T2 &  b 
) [inline, static]


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

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