Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

Section 13: Smalltalk-Like Collection Classes

The Smalltalk-like collection classes are the third general type of collection class provided by Tools.h++. Based on the language Smalltalk-80, these collections require that their collected objects singly or multiply inherit from the abstract base class RWCollectable.

These collection classes have a few disadvantages: they are slightly slower and not completely typesafe, and their objects are slightly larger. These disadvantages are easily outweighed by the power of these classes, and their clean programming interface. Most importantly, the Smalltalk-like collection classes are well-suited for heterogeneous collections and polymorphic persistence.

Many of the Tools.h++ Smalltalk-like classes have a typedef to either the corresponding Smalltalk names, or to a generic name. This typedef is activated by defining the preprocessor macro RW_STD_TYPEDEFS. Although you are free to use typedefs, we do encourage you to use the actual class names to make your code more maintainable.


Previous fileTop of documentContentsIndexNext file
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.