DGtal  0.9.4beta
Public Member Functions
boost::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 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

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.

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

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.

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