Plasma Engine  2.0
Loading...
Searching...
No Matches
plPermutationGenerator Class Reference

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.
 

Detailed Description

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.


The documentation for this class was generated from the following files: