CongruenceInterface¶
-
class CongruenceInterface : public libsemigroups::Runner¶
Defined in
cong-intf.hpp
.Every class for representing congruences in
libsemigroups
is derived from CongruenceInterface, which holds the member functions that are common to all its derived classes. CongruenceInterface is an abstract class.Subclassed by libsemigroups::CongruenceByPairs< FroidurePin< detail::KBE, FroidurePinTraits< detail::KBE, fpsemigroup::KnuthBendix > > >, libsemigroups::Congruence, libsemigroups::CongruenceByPairs< TFroidurePinType >, libsemigroups::congruence::Kambites, libsemigroups::congruence::KnuthBendix, libsemigroups::congruence::ToddCoxeter
Member types¶
Type for indices of congruence class indices. |
|
Type for a |
|
Type for a |
|
Type for non-trivial classes. |
Constructors¶
Default copy constructor. |
|
Constructs a congruence of the specified type. |
Deleted constructors¶
Deleted. |
|
Deleted. |
|
Deleted. |
|
Deleted. |
Initialization¶
|
Add a generating pair to the congruence. |
Add a generating pair to the congruence. |
|
The number of generating pairs. |
|
The number of generators. |
|
Set the number of generators of the congruence. |
Handedness¶
The handedness of the congruence (left, right, or 2-sided). |
Iterators¶
Returns a const iterator pointing to the first generating pair. |
|
Returns a const iterator pointing to the first non-singleton class. |
|
Returns a const iterator pointing one-after-the-end of the last generating pair. |
|
Returns a const iterator pointing one-past-the-end of the last non-singleton class. |
Words and class indices¶
Get a canonical representative of the |
|
Convert a word into the index of the class containing it. |
Numbers of classes, and comparisons¶
Check if a pair of words is known to belong to the congruence. |
|
Check if a pair of words belongs to the congruence. |
|
Compare the indices of the classes containing two words. |
|
Returns a shared pointer to the non-trivial classes. |
|
Compute the number of classes in the congruence. |
|
The number of non-singleton classes. |
Member functions inherited from Runner¶
Check if the runner is dead. |
|
Check if |
|
Stop |
|
Check if it is time to report. |
|
Get the minimum elapsed time between reports. |
|
Set the minimum elapsed time between reports. |
|
Set the minimum elapsed time between reports. |
|
Report why |
|
Run until |
|
Run for a specified amount of time. |
|
Run for a specified amount of time. |
|
Run until a nullary predicate returns |
|
Run until a nullary predicate returns |
|
Check if currently running. |
|
Check if the runner is currently running for a particular length of time. |
|
Check if the runner is currently running until a nullary predicate returns |
|
Check if |
|
Check if the runner is stopped. |
|
Check if the runner was, or should, stop because of the argument for |
|
Check if the amount of time passed to |