1 #ifndef DUNE_ALUGRID_3D_DATACOLLECTORCAPS_HH
2 #define DUNE_ALUGRID_3D_DATACOLLECTORCAPS_HH
7 namespace DataCollectorCaps
10 template<
class DataCollector >
14 struct Big {
char dummy[2]; };
16 template<
class T, T >
struct TypeCheck;
18 typedef bool (DataCollector::*Method)()
const;
21 static Small test ( TypeCheck< Method, &T::userDefinedPartitioning > * );
23 static Big test ( ... );
26 static const bool v = (
sizeof( test< DataCollector >( 0 ) ) ==
sizeof( Small ));
29 template<
class DataCollector >
33 struct Big {
char dummy[2]; };
35 template<
class T, T >
struct TypeCheck;
37 typedef bool (DataCollector::*Method)()
const;
40 static Small test ( TypeCheck< Method, &T::userDefinedLoadWeights > * );
42 static Big test ( ... );
45 static const bool v = (
sizeof( test< DataCollector >( 0 ) ) ==
sizeof( Small ));
52 #endif // #ifndef DUNE_ALUGRID_3D_DATACOLLECTORCAPS_HH