3.2.2. generated.hpp¶
Full path: group/generated.hpp
-
template<typename
Alloc, typenameDupChecker= DupCheckerNop>
classgenerated_group¶ Models
Group.A basic group implementation representing it by a generating set of permutations.
- Template Parameters
Alloc – the allocator to use.
DupChecker – a function object for checking if a permutation is already in the generating set.
-
explicit
generated_group(const allocator &alloc, DupChecker dupChecker = DupChecker())¶ Construct the trivial group on
alloc.degree()elements.
-
template<typename
UPerm>
voidadd_generator(UPerm &&perm)¶ Add a copy of
permas a new generator to the group. TheDupCheckeris used for deciding if the new generator already exists.
-
template<typename
UPerm, typenameNext>
voidadd_generator(UPerm &&perm, Next next)¶ Add a copy of
permas a new generator to the group. TheDupCheckeris used for deciding if the new generator already exists. If the permutation is added, thenextfunction is called with three iterators:next(first, lastOld, lastNew)where the rangefirsttolastOlddenotes the generating set of the group before the call, and the rangelastOldtolastNewdenotes the added generators.
-
std::size_t
degree() const¶
-
PtrContainerToPermProxy<Store, perm>
generators() const¶
-
PtrContainerToPtrProxy<Store, const_pointer>
generator_ptrs() const¶