Modifiers and accessors

This page contains information about the member functions of the DynamicPTransf class for modifying and accessing values.

inline value_type &libsemigroups::DynamicPTransf::at(size_t i)

Get a reference to the image of a point.

Returns a reference to the image of i.

Complexity

Constant.

Parameters

i – the point.

Throws

std::out_of_range – if i is out of range.

Returns

A reference to a value_type.

inline value_type const &libsemigroups::DynamicPTransf::at(size_t i) const

Get a const reference to the image of a point.

Returns a const reference to the image of i.

Complexity

Constant.

Parameters

i – the point.

Throws

std::out_of_range – if i is out of range.

Returns

A const reference to a value_type.

inline void libsemigroups::DynamicPTransf::increase_degree_by(size_t m)

Increase the degree in-place.

Increases the degree of this in-place, leaving existing values unaltered.

Complexity

At worst linear in the sum of the parameter m and degree().

Parameters

m – the number of points to add.

Throws

(None) – This function guarantees not to throw a LibsemigroupsException.

inline value_type &libsemigroups::DynamicPTransf::operator[](size_t i)

Get a reference to the image of a point.

Returns a reference to the image of i.

Complexity

Constant.

Warning

No bound checks are performed on i.

Parameters

i – the point.

Throws

(None) – This function is noexcept and is guaranteed never to throw.

Returns

A reference to a value_type.

inline value_type const &libsemigroups::DynamicPTransf::operator[](size_t i) const

Get a const reference to the image of a point.

Returns a const reference to the image of i.

Complexity

Constant.

Warning

No bound checks are performed on i.

Parameters

i – the point.

Throws

(None) – This function is noexcept and is guaranteed never to throw.

Returns

A const reference to a value_type.

inline void libsemigroups::DynamicPTransf::swap(PTransfBase &that) noexcept

Swap with another partial transformation.

Parameters

that – the partial transformation to swap with.

Throws

(None) – This function is noexcept and is guaranteed never to throw.

Returns

(None)