Skip to content

listiterator

Holds the "listiterator" datatype

Associated DataTypes

listiterator

A listiterator implements a forward iterator over the list type. A forward iterator is an iterator that can only be incremented. Invoking Advance on the iterator will position the iterator on the next element in the list. Elements in a list are identified by position. The positions have ordinals in the range 0 to Count -1. If there is no next element, the iterator will be positioned on the end of the list and IsEnd will be true.

Members

bool Reset

Positions the iterator to the start of the list. True is always returned.

bool Advance

The iterator is moved to the next item in the list, if one exists. True is returned if the iterator was advanced and False otherwise.

bool IsEnd

True if the iterator is at the end of the list.

string Value

Returns the element of the list under the iterator.

listiterator Clone

Returns a copy of the current listiterator. A copy has independent life and initially is over the same element as the source iterator.

This TLO is added by MQ2Collections.