Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 62 of file VtkToFld.cpp.

Member Function Documentation

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

Definition at line 64 of file VtkToFld.cpp.

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