Back to FabImage Library website
You are here: Start » Function Reference » All Functions » Array Basics » FisFilter_SetMultipleArrayElements
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Header: | STD.h |
---|---|
Namespace: | fis |
Module: | FoundationLite |
Sets elements of an array to new values.
Syntax
void fis::FisFilter_SetMultipleArrayElements ( ftl::Array<Type>& ioArray, const ftl::Array<int>& inIndices, bool inInverse, const ftl::Array<Type>& inNewValues )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
ioArray | Array<Type>& | ||
![]() |
inIndices | const Array<int>& | Indices within the array | |
![]() |
inInverse | bool | False | Determines if the indices are counted from beginning or from end of the input array |
![]() |
inNewValues | const Array<Type>& | Values to be set |
Examples
![]() |
![]() |
inArray = {1,4,3,2,5} inIndices = {0,2,4} inNewValues = {8,7,6} |
outArray = {8,4,7,2,6} |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Inconsistent array lengths in SetMultipleArrayElements. |
DomainError | Index out of range in SetMultipleArrayElements. |
See Also
- FisFilter_SetArrayElement – Sets an element of an array to a new value.
- FisFilter_GetArrayElement – Extracts a single element from an array at the specified index.