Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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
[legend]
Collaboration diagram for Nektar::NekMeshUtils::NodeHash:
Collaboration graph
[legend]

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 430 of file Node.h.

Member Function Documentation

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

Definition at line 432 of file Node.h.

433  {
434  std::size_t seed = 0;
435  boost::hash_combine(seed, p->m_x);
436  boost::hash_combine(seed, p->m_y);
437  boost::hash_combine(seed, p->m_z);
438  return seed;
439  }