|
- Author:
- larsivi (IP: 85.221.53.194)
- Timestamp:
- 01/23/08 13:21:40 (16 years ago)
- Comment:
Various fixes
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ChapterStorage
v33 |
v34 |
|
1 | | [wiki:StoreComments Leave Comments, Critiques, and Suggestions Here] |
---|
2 | | |
---|
| 1 | [[TOC()]] |
---|
3 | 2 | = The collection classes = |
---|
4 | 3 | Tango provides a number of collection classes, sometimes also called container classes. |
---|
19 | 18 | |
---|
20 | 19 | auto list = new MyIntList; |
---|
21 | | list.add(1); |
---|
| 20 | list.append(1); |
---|
22 | 21 | }}} |
---|
23 | 22 | |
---|
159 | 158 | This may be rectified in the future. |
---|
160 | 159 | |
---|
161 | | [[docs(InterleavingIterator, tango.util.collection.iterator.InterleavingIterator.html, h2)]] |
---|
| 160 | == !InterleavingIterator == |
---|
162 | 161 | |
---|
163 | 162 | This more complex ''Iterator'' shows why iterators are still useful, even if we have the ''foreach'' construct. |
---|
164 | 163 | |
---|
165 | | '''!InterleavingIterator'''s allow you to combine the elements of two different enumerations as if they were one enumeration before they are seen by their ''consumers''. |
---|
| 164 | '''[[docs(InterleavingIterators, tango.util.collection.iterator.InterleavingIterator.html,)]]''' allow you to combine the elements of two different enumerations as if they were one enumeration before they are seen by their ''consumers''. |
---|
166 | 165 | This sometimes allows one to avoid use of a collection object, to temporarily combine two sets of Collection '''elements()''' that need to be collected together for common processing. |
---|
167 | 166 | |
---|
197 | 196 | }}} |
---|
198 | 197 | |
---|
199 | | [[docs(FilteringIterator,tango.util.collection.iterator.FilteringIterator.html, h2)]] |
---|
200 | | |
---|
201 | | '''!FilteringIterator'''s allow you to filter out elements from other enumerations before they are seen by their ''consumers'' (i.e. the callers of '''get'''). |
---|
| 198 | == !FilteringIterator == |
---|
| 199 | |
---|
| 200 | '''[[docs(FilteringIterators,tango.util.collection.iterator.FilteringIterator.html,)]]''' allow you to filter out elements from other enumerations before they are seen by their ''consumers'' (i.e. the callers of '''get'''). |
---|
202 | 201 | |
---|
203 | 202 | {{{ |
---|
204 | 203 | #!d |
---|
205 | 204 | import tango.util.collection.LinkSeq; |
---|
206 | | import tango.util.collection.ArraySeq; |
---|
| 205 | import tango.util.collection.ArrayBag; |
---|
207 | 206 | import tango.util.collection.iterator.FilteringIterator; |
---|
208 | 207 | |
---|
357 | 356 | * For further readings on hash tables, see this [http://en.wikipedia.org/wiki/Hash_table Wikipedia-article] |
---|
358 | 357 | |
---|
359 | | |
---|
| 358 | == Illustrations == |
---|
360 | 359 | |
---|
361 | 360 | [[Image(source:/trunk/doc/images/collection.png)]] |
---|
365 | 364 | [[Image(source:/trunk/doc/images/methods.png)]] |
---|
366 | 365 | |
---|
| 366 | == User Comments == |
---|
| 367 | |
---|
| 368 | [[EmbedReplies(DocComments,ChapterStorage)]] |
|
|
|
|
|
Copyright © 2006-2024 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic