FreePOOMA
2.4.1
|
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>
Public Types | |
enum | { strided = !DomainTraits<T1>::unitStride } |
enum | { n = Dim - 1 } |
Static Public Member Functions | |
static bool | contains (const T1 &a, const T2 &b) |
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.
static bool ContainsDomain< T1, T2, Dim >::contains | ( | const T1 & | a, |
const T2 & | b | ||
) | [inline, static] |
References ContainsDomain< T1, T2, Dim >::n.
Referenced by ContainsDomain< T1, T2, 1 >::contains().