#include <Geometry.h>
Detailed Description
Definition at line 242 of file Geometry.h.
Member Function Documentation
std::size_t Nektar::SpatialDomains::GeometryHash::operator() |
( |
GeometrySharedPtr const & |
p | ) |
const |
|
inline |
Definition at line 244 of file Geometry.h.
{
int i;
size_t seed = 0;
int nVert = p->GetNumVerts();
std::vector<unsigned int> ids(nVert);
for (i = 0; i < nVert; ++i)
{
ids[i] = p->GetVid(i);
}
std::sort(ids.begin(), ids.end());
boost::hash_range(seed, ids.begin(), ids.end());
return seed;
}