FreePOOMA  2.4.1
Public Types | Static Public Member Functions
IntersectDomain< T1, T2, T3, Dim > Struct Template Reference

IntersectDomain implements a basic template meta-program to intersect each dimension separately of the multidimensional domains. More...

#include <Intersect.h>

List of all members.

Public Types

enum  { strided }

Static Public Member Functions

static void intersect (const T1 &a, const T2 &b, T3 &c)

Detailed Description

template<class T1, class T2, class T3, int Dim>
struct IntersectDomain< T1, T2, T3, Dim >

IntersectDomain implements a basic template meta-program to intersect each dimension separately of the multidimensional domains.

It uses IntersectDomainSingle to do the single-domain intersection, telling that struct whether the domains have unit stride or not. A general version of IntersectDomain is defined, to intersect 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, class T3, int Dim>
anonymous enum
Enumerator:
strided 

Member Function Documentation

template<class T1, class T2, class T3, int Dim>
static void IntersectDomain< T1, T2, T3, Dim >::intersect ( const T1 &  a,
const T2 &  b,
T3 &  c 
) [inline, static]

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