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

Public Member Functions

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

Detailed Description

Definition at line 68 of file ProcessDisplacement.cpp.

Member Function Documentation

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

Definition at line 70 of file ProcessDisplacement.cpp.

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

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