DGtal  1.5.beta
boost::hash< DGtal::KhalimskyCell< dim, TInteger > > Struct Template Reference

Extend boost namespace to define a boost::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 boost::hash< DGtal::KhalimskyCell< dim, TInteger > >

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

Definition at line 93 of file KhalimskyCellHashFunctions.h.

Member Function Documentation

◆ operator()()

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

Definition at line 95 of file KhalimskyCellHashFunctions.h.

96  {
97  auto const& p = pp.preCell();
98  return boost::hash_range(p.coordinates.begin(), p.coordinates.end());
99  }
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: