All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Nektar::NekMeshUtils::NodeHash Struct Reference

Defines a hash function for nodes. More...

#include <Node.h>

Inheritance diagram for Nektar::NekMeshUtils::NodeHash:
Inheritance graph
Collaboration diagram for Nektar::NekMeshUtils::NodeHash:
Collaboration graph

Public Member Functions

std::size_t operator() (NodeSharedPtr const &p) const

Detailed Description

Defines a hash function for nodes.

The hash of a node is straight-forward; a combination of the x, y, and z co-ordinates in this order.

Definition at line 346 of file Node.h.

Member Function Documentation

std::size_t Nektar::NekMeshUtils::NodeHash::operator() ( NodeSharedPtr const &  p) const

Definition at line 348 of file Node.h.

349  {
350  std::size_t seed = 0;
351  boost::hash_combine(seed, p->m_x);
352  boost::hash_combine(seed, p->m_y);
353  boost::hash_combine(seed, p->m_z);
354  return seed;
355  }