CoreClasses Xojo Plugin

IIterator Interface

Objects that Implement this Interface share a common interface of how to iterate through a container.

So if a object Implements this interface then you can always talk to it with the IIterator interface methods.

Note:
Interfaces don't actually do anything. A Interface is just a promise of what methods a implementor of a interface will have.

interface IIterator

Methods

GetNextUse this function on containers that Implement the IIterator Interface to get next item from the container.
HasNextUse this function on containers that Implement the IIterator Interface to get info if there are more items in the container.
MoveFirstUse this function on containers that Implement the IIterator Interface to reset the iterator in the container.
PeekNextUse this function on containers that Implement the IIterator Interface to peek at next item from the container without causing iteration.

[Footnote]

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM