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

EnumerateReals
Header: | STD.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
In each consecutive iteration produces a consecutive number from an arithmetic sequence.
Syntax
bool fil::EnumerateReals ( Enumerate1DState& ioState, float inStart, ftl::Optional<int> inCount, float inStep, bool inRepeat, float& outValue, ftl::Optional<bool> outIsFirst = ftl::NIL, ftl::Optional<bool> outIsLast = ftl::NIL )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
ioState | Enumerate1DState& | Object used to maintain state of the function. | ||
![]() |
inStart | float | First value of the generated sequence | ||
![]() |
inCount | Optional<int> | 0 - ![]() |
NIL | Length of the generated sequence |
![]() |
inStep | float | Value added in each iteration | ||
![]() |
inRepeat | bool | Determines whether to repeat loop | ||
![]() |
outValue | float& | |||
![]() |
outIsFirst | Optional<bool> | NIL | Flag indicating the first iteration | |
![]() |
outIsLast | Optional<bool> | NIL | Flag indicating the last iteration |
Optional Outputs
The computation of following outputs can be switched off by passing value ftl::NIL
to these parameters: outIsFirst, outIsLast.
Read more about Optional Outputs.