Static member functions¶
This page contains information about the static member functions of the DynamicPTransf class.
-
inline TSubclass libsemigroups::DynamicPTransf::identity() const¶
Returns the identity transformation on degree() points.
This function returns a newly constructed partial transformation with degree equal to the degree of
thisthat fixes every value from0to degree().- Parameters
(None)
- Template Parameters:
TSubclass – A class derived from libsemigroups::PTransfPolymorphicBase.
- Throws:
(None) – This function is
noexceptand is guaranteed never to throw.- Returns:
A value of type
TSubclass.
-
static inline TSubclass libsemigroups::DynamicPTransf::identity(size_t N)¶
Returns the identity transformation on the given number of points.
This function returns a newly constructed partial transformation with degree equal to the degree of
thisthat fixes every value from0to degree().- Parameters
(None)
- Template Parameters:
TSubclass – A class derived from libsemigroups::PTransfPolymorphicBase.
- Throws:
(None) – This function is
noexceptand is guaranteed never to throw.- Returns:
A value of type
TSubclass.
-
static inline TSubclass libsemigroups::DynamicPTransf::make(TContainerAgain &&cont)¶
Construct from a container and validates.
Constructs an partial transformation initialized using the container
contas follows: the image of the pointiunder the partial transformation is the value in positioniof the containercont.- Complexity
Linear in the size of the container
cont.
- Parameters:
cont – the container.
- Throws:
LibsemigroupsException – if any of the following hold:
the size of
contis incompatible with container_type.any value in
contexceedscont.size()and is not equal to libsemigroups::UNDEFINED.
-
static inline TSubclass libsemigroups::DynamicPTransf::make(std::initializer_list<value_type> const &cont)¶
Construct from an initializer list.
See also