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)
DGtal::uint32_t Dimension
size_t operator()(const DGtal::KhalimskyCell< dim, TInteger > &pp) const
size_t operator()(const DGtal::SignedKhalimskyCell< dim, TInteger > &pp) const
size_t operator()(const DGtal::KhalimskyCell< dim, TInteger > &pp) const
SPreCell const & preCell() const
Returns the underlying constant signed pre-cell.
PreCell const & preCell() const
Returns the underlying constant pre-cell.
DGtal is the top-level namespace which contains all DGtal functions and types.
unsigned int dim(const Vector &z)
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value...
size_t operator()(const DGtal::SignedKhalimskyCell< dim, TInteger > &pp) const
Represents an (unsigned) cell in a cellular grid space by its Khalimsky coordinates.