Initialization

This page contains information about the various ways of initialising an instance of the Stephen class.

template<typename P>
Stephen &libsemigroups::Stephen::init(P &&p)

Initialize from a presentation.

Replaces the current value (if any) returned by presentation by the argument, and the state of the object is the same as if it had been newly constructed from the presentation p.

Template Parameters

P – a type derived from PresentationBase

Parameters

p – the presentation.

Throws
Returns

A reference to this.

Stephen &libsemigroups::Stephen::set_word(word_type &&w)

Set the word.

This function can be used to set the word whose left factors, or equivalent words, are sought.

Parameters

w – an rvalue reference to the input word.

Throws

LibsemigroupsException – if the letters in do not all belong to the alphabet of the presentation.

Returns

A reference to this.

Stephen &libsemigroups::Stephen::set_word(word_type const &w)

Set the word.

This function can be used to set the word whose left factors, or equivalent words, are sought. The input word is copied.

Parameters

w – a const reference to the input word.

Throws

LibsemigroupsException – if the letters in do not all belong to the alphabet of the presentation.

Returns

A reference to this.