FreePOOMA
2.4.1
|
TouchesDomain implements a basic template meta-program to compare each dimension separately of the multidimensional domains for whether they touch. More...
#include <Touches.h>
Public Types | |
enum | { strided } |
Static Public Member Functions | |
static bool | touches (const T1 &a, const T2 &b) |
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.
static bool TouchesDomain< T1, T2, Dim >::touches | ( | const T1 & | a, |
const T2 & | b | ||
) | [inline, static] |
Referenced by TouchesDomain< T1, T2, 1 >::touches(), and touches2().