All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Nektar::SpatialDomains::GeometryHash Struct Reference

#include <Geometry.h>

Public Member Functions

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

Detailed Description

Definition at line 237 of file Geometry.h.

Member Function Documentation

std::size_t Nektar::SpatialDomains::GeometryHash::operator() ( GeometrySharedPtr const &  p) const

Definition at line 239 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;