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

Defines a hash function for nodes. More...

#include <MeshElements.h>

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 207 of file MeshElements.h.

Member Function Documentation

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

Definition at line 209 of file MeshElements.h.

{
std::size_t seed = 0;
boost::hash_combine(seed, p->m_x);
boost::hash_combine(seed, p->m_y);
boost::hash_combine(seed, p->m_z);
return seed;
}