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 60 of file VtkToFld.cpp.

Member Function Documentation

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

Definition at line 62 of file VtkToFld.cpp.

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