Regina Calculation Engine
|
A function object used for sorting faces of triangulations by decreasing degree. More...
#include <triangulation/generic/triangulation.h>
Public Member Functions | |
DegreeGreaterThan (const Triangulation< dim > &tri) | |
Constructions a function object for working with faces of the given triangulation. More... | |
bool | operator() (unsigned a, unsigned b) const |
Compares the degrees of the subdim-dimensional faces at the given indices within the working triangulation. More... | |
A function object used for sorting faces of triangulations by decreasing degree.
This can (for instance) be used with std::sort().
The template argument dim refers to the dimension of the overall triangluation(s) with which you are working. The template argument subdim refers to the dimension of the faces that you are sorting. So, for instance, to sort edges of a 3-manifold triangulation by decreasing edge degree, you would use DegreeGreaterThan<3, 1>.
A single instance of this class works with faces of a single fixed triangulation (which is passed to the class constructor).