DGtal  0.9.4beta
Public Member Functions
std::hash< DGtal::KhalimskyCell< dim, TInteger > > Struct Template Reference

#include <DGtal/topology/KhalimskyCellHashFunctions.h>

Public Member Functions

size_t operator() (const DGtal::KhalimskyCell< dim, TInteger > &pp) const
 

Detailed Description

template<DGtal::Dimension dim, typename TInteger>
struct std::hash< DGtal::KhalimskyCell< dim, TInteger > >

Extend std namespace to define a std::hash function on DGtal::KhalimskyCell.

Definition at line 56 of file KhalimskyCellHashFunctions.h.

Member Function Documentation

template<DGtal::Dimension dim, typename TInteger >
size_t std::hash< DGtal::KhalimskyCell< dim, TInteger > >::operator() ( const DGtal::KhalimskyCell< dim, TInteger > &  pp) const
inline

Definition at line 58 of file KhalimskyCellHashFunctions.h.

References DGtal::KhalimskyCell< dim, TInteger >::preCell().

59  {
60  auto const& p = pp.preCell();
61  return boost::hash_range(p.coordinates.begin(), p.coordinates.end());
62  }
PreCell const & preCell() const
Returns the underlying constant pre-cell.

The documentation for this struct was generated from the following file: