29 #if defined(PointHashFunctions_RECURSES) 30 #error Recursive header files inclusion detected in PointHashFunctions.h 31 #else // defined(PointHashFunctions_RECURSES) 33 #define PointHashFunctions_RECURSES 35 #if !defined PointHashFunctions_h 37 #define PointHashFunctions_h 42 #include "DGtal/base/Common.h" 43 #include "DGtal/kernel/PointVector.h" 44 #include "DGtal/kernel/NumberTraits.h" 45 #include "DGtal/base/BasicTypes.h" 47 #include <boost/functional/hash.hpp> 59 typename EuclideanRing,
61 struct hash<
DGtal::PointVector<dim,EuclideanRing,Container> >
65 return boost::hash_range(p.begin(), p.end());
74 struct hash<
DGtal::BigInteger >
86 struct hash<
DGtal::BigInteger > : std::hash<DGtal::BigInteger>
93 #endif // !defined PointHashFunctions_h 95 #undef PointHashFunctions_RECURSES 96 #endif // else defined(PointHashFunctions_RECURSES)
DGtal::uint32_t Dimension
Aim: Implements basic operations that will be used in Point and Vector classes.
mpz_class BigInteger
Multi-precision integer with GMP implementation.
static DGtal::int64_t castToInt64_t(const T &aT)
size_t operator()(const DGtal::BigInteger &p) const
DGtal is the top-level namespace which contains all DGtal functions and types.
unsigned int dim(const Vector &z)
size_t operator()(const DGtal::PointVector< dim, EuclideanRing, Container > &p) const