This page documents the constructors and initialisers for the ToddCoxeter class.
Every constructor (except the move + copy constructors, and the move and copy assignment operators) has a matching init function with the same signature that can be used to re-initialize a ToddCoxeter instance as if it had just been constructed; but without necessarily releasing any previous allocated memory.
Functions | |
| ToddCoxeter ()=default | |
| Default constructor. | |
| ToddCoxeter (congruence_kind knd, Presentation< Word > &&p) | |
| Construct from congruence_kind and Presentation. | |
| ToddCoxeter (congruence_kind knd, Presentation< Word > const &p) | |
| Construct from congruence_kind and Presentation. | |
| ToddCoxeter (congruence_kind knd, ToddCoxeter const &tc) | |
| Construct from congruence_kind and ToddCoxeter. | |
| template<typename Node> | |
| ToddCoxeter (congruence_kind knd, WordGraph< Node > const &wg) | |
| Construct from congruence_kind and WordGraph. | |
| ToddCoxeter (ToddCoxeter &&)=default | |
| ToddCoxeter (ToddCoxeter const &)=default | |
| ToddCoxeter & | init () |
| Re-initialize a ToddCoxeter instance. | |
| ToddCoxeter & | init (congruence_kind knd, Presentation< Word > &&p) |
| Re-initialize a ToddCoxeter instance. | |
| ToddCoxeter & | init (congruence_kind knd, Presentation< Word > const &p) |
| Re-initialize a ToddCoxeter instance. | |
| ToddCoxeter & | init (congruence_kind knd, ToddCoxeter const &tc) |
| Re-initialize a ToddCoxeter instance. | |
| template<typename Node> | |
| ToddCoxeter & | init (congruence_kind knd, WordGraph< Node > const &wg) |
| Re-initialize a ToddCoxeter instance. | |
| ToddCoxeter & | operator= (ToddCoxeter &&)=default |
| Move assignment operator. | |
| ToddCoxeter & | operator= (ToddCoxeter const &)=default |
| Copy assignment operator. | |
| template<typename Iterator1, typename Iterator2> | |
| void | throw_if_letter_not_in_alphabet (Iterator1 first, Iterator2 last) const |
| Throws if any letter in a range is out of bounds. | |
|
default |
This function default constructs an uninitialised ToddCoxeter instance.
|
inline |
This function constructs a ToddCoxeter instance representing a congruence of kind knd over the semigroup or monoid defined by the presentation p.
| knd | the kind (onesided or twosided) of the congruence. |
| p | the presentation. |
| LibsemigroupsException | if p is not valid. |
|
inline |
This function constructs a ToddCoxeter instance representing a congruence of kind knd over the semigroup or monoid defined by the presentation p.
| knd | the kind (onesided or twosided) of the congruence. |
| p | the presentation. |
| LibsemigroupsException | if p is not valid. |
|
inline |
This function constructs a ToddCoxeter instance representing a congruence of kind knd over the ToddCoxeter instance tc. The ToddCoxeter instance constructed in this way represents a quotient of the word graph represented by tc.
| knd | the kind (onesided, or twosided) of the congruence. |
| tc | the ToddCoxeter instance. |
| LibsemigroupsException | if the arguments knd and tc are not compatible. If the first item is tc.kind() and the second is the parameter knd, then compatible arguments are (one-sided, one-sided), (two-sided, one-sided), and (two-sided, two-sided). |
|
inline |
This function constructs a ToddCoxeter instance representing a congruence of kind knd over the WordGraph wg. The ToddCoxeter instance constructed in this way represents a quotient of the word graph wg. If wg happens to be the left or right Cayley graph of a semigroup or monoid, then the ToddCoxeter instance will represent a quotient of that semigroup.
| Node | the type of the nodes in the 2nd argument. |
| knd | the kind (1- or 2-sided) of the congruence. |
| wg | the word graph. |
|
default |
Move constructor.
|
default |
Copy constructor.
| ToddCoxeter & init | ( | ) |
This function puts a ToddCoxeter instance back into the state that it would have been in if it had just been newly default constructed.
| ToddCoxeter & init | ( | congruence_kind | knd, |
| Presentation< Word > && | p ) |
This function puts a ToddCoxeter instance back into the state that it would have been in if it had just been newly constructed from knd and p.
| knd | the kind (onesided or twosided) of the congruence. |
| p | the presentation. |
| LibsemigroupsException | if p is not valid. |
|
inline |
This function puts a ToddCoxeter instance back into the state that it would have been in if it had just been newly constructed from knd and p.
| knd | the kind (onesided or twosided) of the congruence. |
| p | the presentation. |
| LibsemigroupsException | if p is not valid. |
| ToddCoxeter & init | ( | congruence_kind | knd, |
| ToddCoxeter< Word > const & | tc ) |
This function puts a ToddCoxeter instance back into the state that it would have been in if it had just been newly constructed from knd and tc.
| knd | the kind (onesided, or twosided) of the congruence. |
| tc | the ToddCoxeter instance. |
| LibsemigroupsException | if the arguments knd and tc are not compatible. If the first item is tc.kind() and the second is the parameter knd, then compatible arguments are (one-sided, one-sided), (two-sided, one-sided), and (two-sided, two-sided). |
| ToddCoxeter & init | ( | congruence_kind | knd, |
| WordGraph< Node > const & | wg ) |
This function puts a ToddCoxeter instance back into the state that it would have been in if it had just been newly constructed from knd and wg.
| Node | the type of the nodes in the 2nd argument. |
| knd | the kind (1- or 2-sided) of the congruence. |
| wg | the word graph. |
|
default |
Move assignment operator.
|
default |
Copy assignment operator.
|
inline |
This function throws a LibsemigroupsException if any value pointed at by an iterator in the range first to last is out of bounds (i.e. does not belong to the alphabet of the presentation used to construct the ToddCoxeter instance).
| Iterator1 | the type of first argument first. |
| Iterator2 | the type of second argument last. |
| first | iterator pointing at the first letter of the word. |
| last | iterator pointing one beyond the last letter of the word. |
| LibsemigroupsException | if any letter in the range from first to last is out of bounds. |