Triangulations of manifolds in all supported dimensions.
More...
Triangulations of manifolds in all supported dimensions.
◆ IsoSigEdgeDegrees
Defines an alternate type of isomorphism signature based on edge degree sequences.
- Python
- Python does not support templates. You can access these classes by appending the appending the dimension as a suffix (e.g., use IsoSigEdgeDegrees3 to use edge degrees in 3-manifold triangulations).
◆ IsoSigRidgeDegrees
Defines an alternate type of isomorphism signature based on degree sequences of (dim-2)-faces.
- Python
- Python does not support templates. You can access these classes by appending the appending the dimension as a suffix (e.g., use IsoSigRidgeDegrees4 to use triangle degrees in 4-manifold triangulations).
◆ faceOppositeEdge()
template<int dim>
constexpr int regina::faceOppositeEdge |
( |
int |
i, |
|
|
int |
j |
|
) |
| |
|
inlineconstexpr |
Returns the (dim-2)-face number that is opposite the edge joining vertices i and j in a dim-dimensional simplex.
This function is offered because its implementation is faster than working through the FaceNumbering class.
The arguments i and j do not need to appear in ascending order.
- Python
- Python does not support templates. Instead, Python users should call this function in the form
faceOppositeEdge(dim, i, j)
; that is, the template parameter dim becomes the first argument of the function.
- Template Parameters
-
dim | the dimension of simplex that we are working with. This must be between 2 and 15 inclusive. |
- Parameters
-
i | the first vertex of an edge in a dim-dimensional simplex. This must be between 0 and dim inclusive. |
j | the second vertex of an edge in a dim-dimensional simplex. This must be between 0 and dim inclusive, and must be different from i. |
- Returns
- the number of the (dim-2)-face opposite the given edge.
◆ operator<<() [1/2]
std::ostream & regina::operator<< |
( |
std::ostream & |
out, |
|
|
const FacePair & |
pair |
|
) |
| |
|
inline |
Writes the given face pair to the given output stream.
- Parameters
-
out | the output stream to which to write. |
pair | the face pair to write. |
- Returns
- a reference to out.
◆ operator<<() [2/2]
template<int dim>
std::ostream & regina::operator<< |
( |
std::ostream & |
out, |
|
|
const FacetSpec< dim > & |
spec |
|
) |
| |
|
inline |
Writes the given facet specifier to the given output stream.
- Parameters
-
out | the output stream to which to write. |
spec | the specifier to write. |
- Returns
- a reference to out.
◆ swap() [1/2]
void regina::swap |
( |
Cut & |
a, |
|
|
Cut & |
b |
|
) |
| |
|
inlinenoexcept |
Swaps the contents of the given cuts.
This global routine simply calls Cut::swap(); it is provided so that Cut meets the C++ Swappable requirements.
- Parameters
-
a | the first cut whose contents should be swapped. |
b | the second cut whose contents should be swapped. |
◆ swap() [2/2]
Swaps the contents of the two given HomologicalData objects.
This global routine simply calls HomologicalData::swap(); it is provided so that HomologicalData meets the C++ Swappable requirements.
- Warning
- Although this operation is constant time, the HomologicalData class contains an enormous amount of data spread across many different member variables, and so this should really be considered "expensive
constant time". You should still work to avoid swapping (or moving, and certainly copying) HomologicalData objects where possible.
- Parameters
-
a | the first object whose contents should be swapped. |
b | the second object whose contents should be swapped. |