Regina 7.3 Calculation Engine
|
Deprecated function object used for sorting faces of triangulations by increasing degree. More...
#include <triangulation/generic/triangulation.h>
Public Member Functions | |
DegreeLessThan (const Triangulation< dim > &tri) | |
Constructions a function object for working with faces of the given triangulation. More... | |
DegreeLessThan (const DegreeLessThan &)=default | |
Creates a new clone of the given function object. 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... | |
DegreeLessThan & | operator= (const DegreeLessThan &)=delete |
Deprecated function object used for sorting faces of triangulations by increasing 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 increasing edge degree, you would use DegreeLessThan<3, 1>.
A single instance of this class works with faces of a single fixed triangulation (which is passed to the class constructor).
An object of this class behaves like a reference: it is lightweight and can be copy-constructed cheaply, but it does not support assignments or swaps.
|
inline |
Constructions a function object for working with faces of the given triangulation.
tri | the triangulation with which we are working. |
|
default |
Creates a new clone of the given function object.
|
inline |
Compares the degrees of the subdim-dimensional faces at the given indices within the working triangulation.
The triangulation that is used will be the one that was passed to the class constructor.
a | the index of the first subdim-dimensional face within the triangulation. |
b | the index of the second subdim-dimensional face within the triangulation. |
true
if and only if face a has smaller degree than face b within the given triangulation.