29 #if defined(KhalimskyCellHashFunctions_RECURSES)
30 #error Recursive header files inclusion detected in KhalimskyCellHashFunctions.h
31 #else // defined(KhalimskyCellHashFunctions_RECURSES)
33 #define KhalimskyCellHashFunctions_RECURSES
35 #if !defined KhalimskyCellHashFunctions_h
37 #define KhalimskyCellHashFunctions_h
42 #include "DGtal/base/Common.h"
43 #include "DGtal/topology/KhalimskySpaceND.h"
44 #include <boost/functional/hash.hpp>
56 struct hash<
DGtal::KhalimskyCell< dim, TInteger > >
61 return boost::hash_range(p.coordinates.begin(), p.coordinates.end());
72 struct hash<
DGtal::SignedKhalimskyCell< dim, TInteger > >
78 ? boost::hash_range(p.coordinates.begin(), p.coordinates.end())
79 : boost::hash_range(p.coordinates.begin(), p.coordinates.end()) ^ ( (size_t) 0x7a0d3fe9 );
93 struct hash<
DGtal::KhalimskyCell< dim, TInteger > >
98 return boost::hash_range(p.coordinates.begin(), p.coordinates.end());
109 struct hash<
DGtal::SignedKhalimskyCell< dim, TInteger > >
115 ? boost::hash_range(p.coordinates.begin(), p.coordinates.end())
116 : boost::hash_range(p.coordinates.begin(), p.coordinates.end()) ^ ( (size_t) 0x7a0d3fe9 );
124 #endif // !defined KhalimskyCellHashFunctions_h
126 #undef KhalimskyCellHashFunctions_RECURSES
127 #endif // else defined(KhalimskyCellHashFunctions_RECURSES)