An iterator provides a mechanism for traversing and accessing various data. To work with iterators, use the following:
The OdRxIterator abstract class provides the base interface for all iterators and is used only for deriving classes. Developers cannot create an instance of this class. It declares the following specific methods:
These methods do not have an implementation and are the declaration of the iterating interface. Classes derived from the OdRxIterator class must redefine these methods for working with specific containers. You should implement these methods in the class that is derived from the OdRxIterator class.
The OdBaseIteratorImpl template class creates the standard implementation of the iterating interface for dictionary objects.
Iterating through Items of a Dictionary
Copyright © 2002 – 2020. Open Design Alliance. All rights reserved.
|