Adding external iterators to an existing Eiffel class library

Olivier Zendra 1 Dominique Colnet 1
1 ECOO - Environment for cooperation
INRIA Lorraine, LORIA - Laboratoire Lorrain de Recherche en Informatique et ses Applications
Abstract : This paper discusses common iteration schemes and highlights the interest of using explicit iterators. The advantages of external iterators are compared to those of internalized iterators. The integration of an iterator class hierarchy to an existing library without modifying the latter is detailed. This integration brings an extra level of abstraction to the library, which thus becomes more flexible, more adapted to certain design patterns and hence can be used in a higher-level way. Such an integration is not only possible, but can even be done in an optimized way, taking into account the specific structure of the collection traversed. A slight extension of existing class libraries can also be implemented that does not cause any compatibility problem and does not break existing code, but allows even further abstraction and makes it easier for the developer to use high-level, optimized, external iterators.
Document type :
Conference papers
Complete list of metadatas

https://hal.inria.fr/inria-00098784
Contributor : Publications Loria <>
Submitted on : Tuesday, September 26, 2006 - 8:37:01 AM
Last modification on : Thursday, January 11, 2018 - 6:19:48 AM
Long-term archiving on : Wednesday, March 29, 2017 - 12:41:03 PM

Identifiers

Collections

Citation

Olivier Zendra, Dominique Colnet. Adding external iterators to an existing Eiffel class library. 32th conference on Technology of Object-Oriented Languages & Systems - TOOLS Pacific'99, Nov 1999, Melbourne, Australia, pp.188 - 199, ⟨10.1109/TOOLS.1999.809425⟩. ⟨inria-00098784⟩

Share

Metrics

Record views

323

Files downloads

59