Class Reference
IRIS for UNIX 2019.1
InterSystems: The power behind what matters   
Documentation  Search
  [%SYS] >  [%Iterator] >  [Array]
Private  Storage   

class %Iterator.Array extends %Iterator.AbstractIterator

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
2


Summary

Methods
%GetNext

Subclasses
%Iterator.Object

Methods

• method %GetNext(Output key, Output value) as %Boolean
%GetNext() advances the iterator and returns true if the iterator is positioned on a valid element, false if it is beyond the last element. The key for the element is returned in the first output argument and the value in the second. To call this method, pass the key and value arguments by reference to receive their return values. To iterate over a %DynamicArray, use the following pattern:
while iterator.%GetNext(.key,.value) {
// key and value now contain the key for the element and value contains the value.
}
• private method %OnNew(oref As %Library.DynamicAbstractObject) as %Status


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.