#include <nsfs.h>
Public Member Functions | |
NExceptionalFibre () | |
Creates a new uninitialised exceptional fibre. | |
NExceptionalFibre (long newAlpha, long newBeta) | |
Creates a new exceptional fibre with the given parameters. | |
NExceptionalFibre (const NExceptionalFibre &cloneMe) | |
Creates a new exceptional fibre that is a clone of the given fibre. | |
void | operator= (const NExceptionalFibre &cloneMe) |
Makes this exceptional fibre a clone of the given fibre. | |
bool | operator== (const NExceptionalFibre &compare) const |
Determines if this and the given exceptional fibre are identical. | |
bool | operator< (const NExceptionalFibre &compare) const |
Determines if this exceptional fibre is smaller than the given fibre. | |
Public Attributes | |
long | alpha |
The first parameter of this (alpha, beta) fibre. | |
long | beta |
The second parameter of this (alpha, beta) fibre. | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const NExceptionalFibre &f) |
Writes the given fibre in human-readable format to the given output stream. |
The first parameter alpha must be strictly positive, and the two parameters alpha and beta must be coprime.
|
Creates a new uninitialised exceptional fibre.
|
|
Creates a new exceptional fibre with the given parameters.
|
|
Creates a new exceptional fibre that is a clone of the given fibre.
|
|
Determines if this exceptional fibre is smaller than the given fibre.
Fibres are sorted by their indices (their first parameters), with the exception that a fibre of index 1 is larger than any other fibre. In the case of a tie, fibres are sorted by their second parameter reduced modulo the index. So, for instance, fibre (3,1) is less than fibre (3,-1) (which is equivalent to (3,2)). If there is still a tie, the fibres are considered equivalent and this routine will return
|
|
Makes this exceptional fibre a clone of the given fibre.
|
|
Determines if this and the given exceptional fibre are identical.
|
|
Writes the given fibre in human-readable format to the given output stream.
The fibre will be written in the format
|
|
The first parameter of this (alpha, beta) fibre. Note that this is the index of the exceptional fibre. This parameter must always be strictly positive. |
|
The second parameter of this (alpha, beta) fibre. This parameter must have no common factors with alpha. |