template<std::size_t N>
tk::UnsMesh::Hash struct

Template parameters
N Number of nodes describing element primitive. E.g., Edge:2, Face:3, Tet:4.

Contents

Hash functor for element primitives, given by node IDs

Public functions

auto operator()(const std::array<std::size_t, N>& p) const -> std::size_t

Function documentation

template<std::size_t N>
std::size_t tk::UnsMesh::Hash<N>::operator()(const std::array<std::size_t, N>& p) const

Parameters
in Array of node IDs of element primitive
Returns Unique hash value for the same array of node IDs

Function call operator computing hash of node IDs