A
SetIterator aims at providing a way to generate an exhaustive
sequence of possible
Sets. Each
Set is a subset of the one
provided in the constructor.
Typically, a
SetIterator can be used to generate a
power set, but the empty
set is not generated. If such a set need to be considered, it should be so
separately to this
SetIterator.
Additional methods are provided such as
getAmountOfPossibleSets() or
#isPossibleSet(set) to be able to evaluate a given
Set
regarding the full set, without having to generate this full set.