Peach :: Generators :: data :: FlagSet :: Class FlagSet
[hide private]

Class FlagSet

source code


Permute the given integer flags into a series of integer values. Will generate all permutations of given flag set.

@author Jon McClintock (jammer@weak.org)

Instance Methods [hide private]
 
__init__(self, group=None, flags=None) source code
 
next(self) source code
 
reset(self) source code
 
getRawValue(self) source code
Static Methods [hide private]
 
unittest() source code
Class Variables [hide private]
  _flags = []
  _count = 0
  _value = None
Method Details [hide private]

__init__(self, group=None, flags=None)
(Constructor)

source code 
Parameters:
  • group (Group) - Group for this Generator
  • flags (Array) - An array containing the values of flags to permute.