All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Nektar::Utilities::TriFaceHash Struct Reference
Inheritance diagram for Nektar::Utilities::TriFaceHash:
Inheritance graph
Collaboration diagram for Nektar::Utilities::TriFaceHash:
Collaboration graph

Public Member Functions

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

Detailed Description

Definition at line 66 of file ProcessDisplacement.cpp.

Member Function Documentation

std::size_t Nektar::Utilities::TriFaceHash::operator() ( TriFaceIDs const &  p) const

Definition at line 68 of file ProcessDisplacement.cpp.

References Nektar::Utilities::TriFaceIDs::a, Nektar::Utilities::TriFaceIDs::b, and Nektar::Utilities::TriFaceIDs::c.

69  {
70  std::vector<int> ids(3);
72  ids[0] = p.a;
73  ids[1] = p.b;
74  ids[2] = p.c;
76  std::sort(ids.begin(), ids.end());
77  return boost::hash_range(ids.begin(), ids.end());
78  }