Back to Aurora Vision Library website

You are here: Start » Function Reference » All Functions » Loop Utils » LoopMaximum

LoopMaximum


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: avl
Module: FoundationLite

Returns the object for which the associated value was the highest among all iterations.

Syntax

void avl::LoopMaximum
(
	const T& inObject,
	float inValue,
	bool inReset,
	T& outMaximumObject,
	float& outMaximumValue,
	int& outMaximumIndex
)

Parameters

Name Type Default Description
Input value inObject const T& Object that may be chosen
Input value inValue float Value associated with the input object
Input value inReset bool False Reset accumulator state
Output value outMaximumObject T& The object whose associated value was the highest
Output value outMaximumValue float& Maximum value that appeared in the loop
Output value outMaximumIndex int& Index of iteration when the maximum object appeared

Hints

  • It is recommended not to use this filter in conditional mode. Use conditional type for instantiation instead.