Adding external iterators to an existing Eiffel class library - INRIA - Institut National de Recherche en Informatique et en Automatique Accéder directement au contenu
Communication Dans Un Congrès Année : 1999

Adding external iterators to an existing Eiffel class library

Olivier Zendra
Dominique Colnet

Résumé

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.
Fichier principal
Vignette du fichier
99-R-318.pdf (75.94 Ko) Télécharger le fichier

Dates et versions

inria-00098784 , version 1 (26-09-2006)

Identifiants

Citer

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⟩
164 Consultations
102 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More