tgen
Loading...
Searching...
No Matches

Permutation generator. More...

Inheritance diagram for tgen::permutation:

Classes

struct  instance
 Permutation instance. More...

Public Member Functions

 permutation (int size)
 Creates permutation generator defined by size.
permutationset (int idx, int value)
 Restricts generator s.t. value at index is fixed.
instance gen () const
 Generates a random instance from the set of valid permutations.
instance gen (std::vector< int > cycle_sizes) const
 Generates a random instance from the set of valid permutations, given a list of cycle sizes.
template<typename Gen, typename Pred, typename... Args>
instance gen_until (Pred predicate, int max_tries, Args &&... args) const
 Generates a random instance from the set of valid permutations until a condition is met.

Detailed Description

Permutation generator.

See also
Permutation generators.

Definition at line 1102 of file tgen.h.


The documentation for this struct was generated from the following files:
  • /home/runner/work/tgen/tgen/single_include/tgen.h
  • permutation.dox