Changes between Version 1 and Version 2 of code/howto/Iterator
- Timestamp:
- Apr 12, 2017, 11:47:30 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/howto/Iterator
v1 v2 1 1 = HowTo: ObjectLists and Iterators = 2 [[TracNav(TracNav/TOC_Development)]]3 2 4 3 == Description == 5 Every instance of a class which is in the [wiki:howto/ClassHierarchy class hierarchy] is stored in a [wiki: ObjectListBase list]. Additionally it's stored in the lists of all classes it is derived. So in the list of "BaseClass" you'll find instances of "BaseClass" '''and''' "DerivedClass" (if DerivedClass is derived from BaseClass as the names suggest).4 Every instance of a class which is in the [wiki:howto/ClassHierarchy class hierarchy] is stored in a [wiki:doc/ObjectListBase list]. Additionally it's stored in the lists of all classes it is derived. So in the list of "BaseClass" you'll find instances of "BaseClass" '''and''' "DerivedClass" (if DerivedClass is derived from BaseClass as the names suggest). 6 5 7 Of course it's possible to iterate through all instances of a class. This is achieved by using iterators. There are two types: [wiki: ObjectListIterator] and [wiki:Iterator]. This page explains the difference and how to use them.6 Of course it's possible to iterate through all instances of a class. This is achieved by using iterators. There are two types: [wiki:doc/ObjectListIterator] and [wiki:doc/Iterator]. This page explains the difference and how to use them. 8 7 9 8 == !ObjectListIterator == … … 19 18 }}} 20 19 21 See [wiki: ObjectListIterator] for detailed information.20 See [wiki:doc/ObjectListIterator] for detailed information. 22 21 23 22 == Iterator == … … 35 34 }}} 36 35 37 See [wiki: Iterator] for detailed information.36 See [wiki:doc/Iterator] for detailed information.