MG Library

Library of Michael Galloy

single page | use frames     summary     class     fields     routine details     file attributes

collection/

mgarraylistiterator__define.pro

This class provides a nice way to iterate through all the elements of an ArrayList.

Class description for mgarraylistiterator

Inheritance

Fields

arraylist obj_new()

arraylist being interated over

pos 0L

position of the next element in the ArrayList to be returned by the "next" method

Fields in mgabstractiterator

Routines

result = mgarraylistiterator::hasNext()

Determine if the underlying collection has another element to retrieve.

result = mgarraylistiterator::next()

Return the next item in the underlying collection.

mgarraylistiterator::remove

Removes from the underlying MGArrayList the last element returned.

mgarraylistiterator::cleanup

Free resources of the iterator (not the underlying collection).

result = mgarraylistiterator::init(arraylist)

Initialize an MGArrayListIterator.

mgarraylistiterator__define

Define member variables.

Routine details

topmgarraylistiterator::hasNext

result = mgarraylistiterator::hasNext()

Determine if the underlying collection has another element to retrieve.

Return value

1 if underlying collection has another element, 0 otherwise

topmgarraylistiterator::next

result = mgarraylistiterator::next()

Return the next item in the underlying collection.

Return value

list item

topmgarraylistiterator::remove

mgarraylistiterator::remove

Removes from the underlying MGArrayList the last element returned.

topmgarraylistiterator::cleanup

mgarraylistiterator::cleanup

Free resources of the iterator (not the underlying collection).

topmgarraylistiterator::init

result = mgarraylistiterator::init(arraylist)

Initialize an MGArrayListIterator.

Return value

1 for success, 0 otherwise

Parameters

arraylist in required type=object

MGArrayList to iterator over

topmgarraylistiterator__define

mgarraylistiterator__define

Define member variables.

Other attributes

Requires:

IDL 6.0

File attributes

Modification date: Tue Nov 20 11:24:28 2007
Lines: 103