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

ContainsDomain implements a basic template meta-program to compare each dimension separately of the multidimensional domains for whether a contains b. More...

#include <Contains.h>

List of all members.

Public Types

enum  { strided = !DomainTraits<T1>::unitStride }
enum  { n = Dim - 1 }

Static Public Member Functions

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

Detailed Description

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

ContainsDomain implements a basic template meta-program to compare each dimension separately of the multidimensional domains for whether a contains b.

It uses ContainsDomainSingle to do the single-domain comparison, telling that struct whether the domains have unit stride or not. A general version of ContainsDomain 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 
template<class T1, class T2, int Dim>
anonymous enum
Enumerator:
n 

Member Function Documentation

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

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