29#if defined(KhalimskyCellHashFunctions_RECURSES)
30#error Recursive header files inclusion detected in KhalimskyCellHashFunctions.h
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 );
126#undef KhalimskyCellHashFunctions_RECURSES
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::uint32_t Dimension
Represents an (unsigned) cell in a cellular grid space by its Khalimsky coordinates.
PreCell const & preCell() const
Returns the underlying constant pre-cell.
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
SPreCell const & preCell() const
Returns the underlying constant signed pre-cell.
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
size_t operator()(const DGtal::SignedKhalimskyCell< dim, TInteger > &pp) const