![]() |
XII Release 0.1.0
|
A helper class to iterate over all possible permutations. More...
#include <PermutationGenerator.h>
Public Member Functions | |
void | Clear () |
Resets everything. | |
void | RemovePermutations (const xiiHashedString &sPermutationVariableName) |
Removes all permutations for the given variable. | |
void | AddPermutation (const xiiHashedString &sName, const xiiHashedString &sValue) |
Adds the name and one of the possible values of a permutation variable. | |
xiiUInt32 | GetPermutationCount () const |
Returns how many permutations are possible. | |
void | GetPermutation (xiiUInt32 uiPerm, xiiHybridArray< xiiGALPermutationVariable, 16 > &out_permutationVariables) const |
Returns the n-th permutation. | |
A helper class to iterate over all possible permutations.
Just add all permutation variables and their possible values. Then the number of possible permutations and each permutation can be queried.