Back to Aurora Vision Library website

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

LastNotNil


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 last value passed that existed.

Syntax

void avl::LastNotNil
(
	const typename atl::ToConditionalType<const Type&>::Type& inObject,
	const T& inInitialObject,
	bool inReset,
	T& outObject,
	int& outIndex
)

Parameters

Name Type Default Description
Input value inObject const typename ToConditionalType<const Type&>::Type& Object that may be chosen
Input value inInitialObject const T& Object to be used before first proper object appears
Input value inReset bool False Reset accumulator state
Output value outObject T& The last object that existed
Output value outIndex int& Index of iteration when the last object appeared

Remarks

  • This filter can be replaced the following formula:
  • One can achieve the same effect by simply using conditional connections on the outputs of a task macrofilter.
  • Instantiating this filter with a conditional type will cause Nil value on the output until a first non-Nil appears.