![]() |
Plasma Engine
2.0
|
A helper class to iterate over all possible permutations. More...
#include <PermutationGenerator.h>
Public Member Functions | |
void | Clear () |
Resets everything. | |
void | RemovePermutations (const plHashedString &sPermVarName) |
Removes all permutations for the given variable. | |
void | AddPermutation (const plHashedString &sName, const plHashedString &sValue) |
Adds the name and one of the possible values of a permutation variable. | |
plUInt32 | GetPermutationCount () const |
Returns how many permutations are possible. | |
void | GetPermutation (plUInt32 uiPerm, plHybridArray< plPermutationVar, 16 > &out_permVars) 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.