Various algebraic structures.
More...
Various algebraic structures.
◆ operator<<()
Writes the given term to the given output stream.
The term will be written in the format g3^-7
, where in this example the term represents generator number 3 raised to the -7th power.
Note that generators are indexed start from 0 (so g3
is in fact the fourth generator in the group presentation, not the third).
If the term has exponent 0 or 1, the output format will be appropriately simplified.
- Parameters
-
out | the output stream to which to write. |
term | the term to write. |
- Returns
- a reference to the given output stream.
◆ swap() [1/7]
Swaps the contents of the two given abelian groups.
This global routine simply calls AbelianGroup::swap(); it is provided so that AbelianGroup meets the C++ Swappable requirements.
- Parameters
-
lhs | the group whose contents should be swapped with rhs. |
rhs | the group whose contents should be swapped with lhs. |
◆ swap() [2/7]
Swaps the contents of the two given expressions.
This global routine simply calls GroupExpression::swap(); it is provided so that GroupExpression meets the C++ Swappable requirements.
- Parameters
-
lhs | the expression whose contents should be swapped with rhs. |
rhs | the expression whose contents should be swapped with lhs. |
◆ swap() [3/7]
Swaps the contents of the two given group presentations.
This global routine simply calls GroupPresentation::swap(); it is provided so that GroupPresentation meets the C++ Swappable requirements.
- Parameters
-
lhs | the presentation whose contents should be swapped with rhs. |
rhs | the presentation whose contents should be swapped with lhs. |
◆ swap() [4/7]
Swaps the contents of the two given homomorphisms.
This global routine simply calls HomGroupPresentation::swap(); it is provided so that HomGroupPresentation meets the C++ Swappable requirements.
- Parameters
-
lhs | the homomorphism whose contents should be swapped with rhs. |
rhs | the homomorphism whose contents should be swapped with lhs. |
◆ swap() [5/7]
Swaps the contents of the two given homomorphisms.
This global routine simply calls HomMarkedAbelianGroup::swap(); it is provided so that HomMarkedAbelianGroup meets the C++ Swappable requirements.
- Parameters
-
lhs | the homomorphism whose contents should be swapped with rhs. |
rhs | the homomorphism whose contents should be swapped with lhs. |
◆ swap() [6/7]
Swaps the contents of the two given intersection forms.
This global routine simply calls IntersectionForm::swap(); it is provided so that IntersectionForm meets the C++ Swappable requirements.
- Parameters
-
lhs | the intersection form whose contents should be swapped with rhs. |
rhs | the intersection form whose contents should be swapped with lhs. |
◆ swap() [7/7]
Swaps the contents of the two given abelian groups.
This global routine simply calls MarkedAbelianGroup::swap(); it is provided so that MarkedAbelianGroup meets the C++ Swappable requirements.
- Parameters
-
lhs | the group whose contents should be swapped with rhs. |
rhs | the group whose contents should be swapped with lhs. |