Show/Hide Toolbars

RiverSoftAVG Products Help

The TInterfaceListIterator object provides an enumeration of all the interfaces in a RSInterfaceCollections.TInterfaceListPersistent object, it implements the CommonInterfaces.IInterfaceIterator interface. It effectively hides the underlying implementation, in this case a TInterfaceListPersistent, while still allowing access to all the interfaces stored in the implementation.

The object provides functionality similar to an Enumeration in Java.

To use the iterator is simple, get the iterator and then keep calling the RSInterfaceCollections.TInterfaceListIterator.NextElement method until the RSInterfaceCollections.TInterfaceListIterator.HasMoreElements method returns False. The iterator works by giving you the next element until the end of the list, there is no provision for getting the previous element. The iterator manages its own memory and will free itself when it is completely dereferenced (as long as you use an interface to access it).

Namespace: RSInterfaceCollections

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb