Back to FabImage Library website
You are here: Start » Function Reference » Data Flow » Loop Generators » EnumerateCombinations

EnumerateCombinations
Header: | STD.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
In each consecutive iteration produces a consecutive combination of integer numbers.
Syntax
bool fil::EnumerateCombinations ( EnumerateCombinationsState& ioState, int inCombinationSize, int inSetSize, bool inRepeat, ftl::Array<int>& outCombination, int& outIndex )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
ioState | EnumerateCombinationsState& | Object used to maintain state of the function. | ||
![]() |
inCombinationSize | int | 0 - ![]() |
2 | |
![]() |
inSetSize | int | 0 - ![]() |
3 | |
![]() |
inRepeat | bool | Determines whether to repeat loop | ||
![]() |
outCombination | Array<int>& | |||
![]() |
outIndex | int& |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Combination size cannot be greater than the set size in EnumerateCombinations. |