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

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

#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

◆ operator()()

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.

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.

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


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