Nektar++
 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
[legend]
Collaboration diagram for Nektar::Utilities::TriFaceHash:
Collaboration graph
[legend]

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
inline

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);
71 
72  ids[0] = p.a;
73  ids[1] = p.b;
74  ids[2] = p.c;
75 
76  std::sort(ids.begin(), ids.end());
77  return boost::hash_range(ids.begin(), ids.end());
78  }