Nektar++
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:
[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 440 of file Node.h.

Member Function Documentation

◆ operator()()

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

Definition at line 442 of file Node.h.

References Nektar::hash_combine().

443  {
444  return hash_combine(p->m_x, p->m_y, p->m_z);
445  }
void hash_combine(std::size_t &seed)
Definition: HashUtils.hpp:46