GetArray Data Member Function

Returns a pointer to the underlying array object.

Prototype

Int32VectorArray GetArray()

Examples

Copy Text To Clipboard

import library "app_service_console_util.ssl";
import library "int32_vector_array_util.ssl";
import library "type_service_select_util.ssl";

BooleanVectorArrayNode a_oNode = LibSelect.FirstBooleanVectorArrayNode();

Int32VectorArray a_aviArray = a_oNode.GetArray();

auto Int32Vector a_viValue;
a_viValue.Set( true, false, true, false );

a_aviArray.Add( a_viValue );
a_aviArray.Add( a_viValue );
a_aviArray.Add( a_viValue );
a_aviArray.Add( a_viValue );

// We are printing four 4-component vectors.
// So we use 4 and 4. The 'width' and 'height'
// must equal the total number of scalars in
// the array. Vectors are always 4 components.
LibInt32VectorArray.Out2D( a_oNode.GetArray(), 4, 4 );

Results

1, 0, 1, 0
1, 0, 1, 0
1, 0, 1, 0
1, 0, 1, 0