Collections are a key feature in the CommonPoint application system. Many, if not most, of the applications you write will use collections. If you have used parameterized C++ collections or polymorphic collections before, some of this material will be review. However, much of this chapter covers aspects of collections specific to the CommonPoint application system. When you have read this chapter you will know
- How to create instances of collections
- The difference between sets, arrays, sequences, and dictionaries
- How to add and remove elements of a collection.
- How to search a collection for a specific element
- How to access and modify collection elements
- How to iterate over a collection to process collection elements
- How to manage memory for collections and collection elements
- The difference between equality (IsEqual) and identity
(IsSame) for collection elements
- How comparators are used to compare collection elements
- How comparators are used to order collection elements
- How comparators help identify and select collection elements
- Hash and equality operations used with collection elements
- Understanding collections
-
- Using collections
-
- Using comparators
-
- Subclassing comparators
-
- Hashing, equality, and comparison
-
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker