Back to Aurora Vision Library website

You are here: Start » Function Reference » All Functions » Array Basics » SkipShortArray

SkipShortArray


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

If the input array has enough elements, then it is copied to the output; otherwise Nil is returned.

Applications: Secures against domain errors caused by arrays having too few elements, e.g. just before the FitSegmentToPoints filter is to be invoked.

Syntax

void avl::SkipShortArray
(
	const atl::Array<Type>& inArray,
	int inMinSize,
	atl::Conditional<atl::Array<Type> >& outBigEnoughArray,
	bool& outIsBigEnough
)

Parameters

Name Type Range Default Description
Input value inArray const Array<Type>& Array that may have too few elements
Input value inMinSize int 0 - 2 Minimum number of elements
Output value outBigEnoughArray Conditional<Array<Type> >& Array with at least inMinSize elements, or Nil
Output value outIsBigEnough bool&

Errors

List of possible exceptions:

Error type Description
DomainError inMinSize must be greater or equal 0 in SkipShortArray.