{"title":"Patterns for C Iterator Interfaces","authors":"C. Preschern","doi":"10.1145/3147704.3147714","DOIUrl":null,"url":null,"abstract":"Iterating over a set of elements is a very common operation in any program. Some programming languages provide native constructs to iterate over elements and for object-oriented progamming languages there exists guidance in form of design patterns on how to implement generic iteration functionality. However, there is just very few guidance of this kind for procedural programming languages like C. This paper provides such guidance and presents three patterns on how to design generic iterator interfaces in C.","PeriodicalId":171324,"journal":{"name":"Proceedings of the 22nd European Conference on Pattern Languages of Programs","volume":"35 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-07-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"6","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 22nd European Conference on Pattern Languages of Programs","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3147704.3147714","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 6
Abstract
Iterating over a set of elements is a very common operation in any program. Some programming languages provide native constructs to iterate over elements and for object-oriented progamming languages there exists guidance in form of design patterns on how to implement generic iteration functionality. However, there is just very few guidance of this kind for procedural programming languages like C. This paper provides such guidance and presents three patterns on how to design generic iterator interfaces in C.