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

Hash function for the Vertex struct used for defining sets. More...

Inheritance diagram for VertexHash:
Inheritance graph
[legend]
Collaboration diagram for VertexHash:
Collaboration graph
[legend]

Public Member Functions

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

Detailed Description

Hash function for the Vertex struct used for defining sets.

Definition at line 63 of file VtkToFld.cpp.

Member Function Documentation

std::size_t VertexHash::operator() ( VertexSharedPtr const &  p) const
inline

Definition at line 65 of file VtkToFld.cpp.

66  {
67  std::size_t seed = 0;
68  boost::hash_combine(seed, p -> x);
69  boost::hash_combine(seed, p -> y);
70  boost::hash_combine(seed, p -> z);
71  return seed;
72  }