Back to Adaptive Vision Library website

You are here: Start » Function Reference » Loop Generators » EnumerateIntegers

EnumerateIntegers


In each consecutive iteration produces a consecutive number from an arithmetic sequence.

Syntax

bool avl::EnumerateIntegers
(
	Enumerate1DState& ioState,
	int inStart,
	atl::Optional<int> inCount,
	int inStep,
	int& outValue
)

Parameters

Name Type Range Default Description
ioState Enumerate1DState& Object used to maintain state of the function.
inStart int First value of the generated sequence
inCount Optional<int> 0 - NIL Length of the generated sequence
inStep int Value added in each iteration
outValue int&