OnTuples¶
-
template<typename
TElementType
, typenameTPointType
, typenameTContainerType
= std::vector<TPointType>>
structlibsemigroups
::
OnTuples
¶ Defined in
adapters.hpp
.This is struct applies
ImageRightAction<TElementType, TPointType>
to every value in a container of typeTContainerType
.- Template Parameters
TElementType
: the type of the elements of the semigroupTPointType
: the type of the points acted onTContainerType
: a container of TPointType
Public Functions
-
void
operator()
(TContainerType &res, TContainerType const &pt, TElementType const &x) const¶ This call operator changes
res
in-place to contain the image of the containerpt
of points of type TPointType, under the induced (left or right) action of the elementx
.The purpose of the 1st parameter is to avoid repeated allocations of memory to hold temporary points that are discarded soon after they are created.
- Return
(None)
- Exception
If ImageRightAction<TElementType, TPointType> throws when applied to any point in
pt
.- Complexity
pt.size()
times the complexity of ImageRightAction<TElementType, TPointType>.- See
OnSets and ImageRightAction.
- Parameters
res
: a container of TPointType (such as std::vector or std::array) to hold the resultpt
: a container of TPointTypex
: an element of type TElementType