Nektar++
Public Member Functions | List of all members
Nektar::FieldUtils::TriFaceHash Struct Reference

Public Member Functions

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

Detailed Description

Definition at line 62 of file ProcessDisplacement.cpp.

Member Function Documentation

◆ operator()()

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

Definition at line 64 of file ProcessDisplacement.cpp.

65 {
66 std::vector<int> ids(3);
67
68 ids[0] = p.a;
69 ids[1] = p.b;
70 ids[2] = p.c;
71
72 std::sort(ids.begin(), ids.end());
73 return hash_combine(ids[0], ids[1], ids[2]);
74 }
void hash_combine(std::size_t &seed)
Definition: HashUtils.hpp:44

References Nektar::hash_combine(), and CellMLToNektar.cellml_metadata::p.