Back to Aurora Vision Library website

You are here: Start » Function Reference » Data Flow » Loop Generators » EnumerateIntegerPairs

EnumerateIntegerPairs


Header: STD.h
Namespace: avl
Module: FoundationLite

Produces a total number of 'inCount1 * inCount2' of pairs of integer numbers.

Syntax

bool avl::EnumerateIntegerPairs
(
	Enumerate2DState& ioState,
	int inStart1,
	atl::Optional<int> inCount1,
	int inStep1,
	int inStart2,
	int inCount2,
	int inStep2,
	bool inRepeat,
	int& outValue1,
	int& outValue2
)

Parameters

Name Type Range Default Description
Input will be modified ioState Enumerate2DState& Object used to maintain state of the function.
Input value inStart1 int First element of first range
Input value inCount1 Optional<int> 0 - NIL Length of first range
Input value inStep1 int Difference between consecutive elements of first range
Input value inStart2 int First element of second range
Input value inCount2 int 0 - Length of second range
Input value inStep2 int Difference between consecutive elements of second range
Input value inRepeat bool Determines whether to repeat loop
Output value outValue1 int& Elements of first range in 'AAABBBCCC' order
Output value outValue2 int& Elements of second range in 'ABCABCABC' order