MG Library

Library of Michael Galloy

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

collection/

mgabstractiterator__define.pro

Class description for mgabstractiterator

Subclasses: mgarraylistiterator

Fields

version 0L

used to compare to the version of the underlying collection to determine if the underlying collection has changed

Routines

result = mgabstractiterator::hasNext()

Determine if the underlying collection has another element to retrieve.

result = mgabstractiterator::next()

Return the next item in the underlying collection.

mgabstractiterator::remove

Removes from the underlying MGArrayList the last element returned.

mgabstractiterator::cleanup

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

result = mgabstractiterator::init()

Initialize an iterator.

mgabstractiterator__define

Define member variables.

Routine details

topmgabstractiterator::hasNext

result = mgabstractiterator::hasNext()

Determine if the underlying collection has another element to retrieve.

Return value

1 if underlying collection has another element, 0 otherwise

topmgabstractiterator::next

result = mgabstractiterator::next()

Return the next item in the underlying collection.

Return value

list item

topmgabstractiterator::remove

mgabstractiterator::remove

Removes from the underlying MGArrayList the last element returned.

topmgabstractiterator::cleanup

mgabstractiterator::cleanup

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

topmgabstractiterator::init

result = mgabstractiterator::init()

Initialize an iterator.

Return value

1 for success, 0 otherwise

topmgabstractiterator__define

mgabstractiterator__define

Define member variables.

File attributes

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