beautypg.com

Chapter 13: smalltalk-like collection classes – HP Integrity NonStop J-Series User Manual

Page 150

background image

Click on the banner to return to the user guide home page.

©Copyright 1996 Rogue Wave Software

Chapter 13: Smalltalk-Like Collection
Classes

Tables of the Smalltalk-like Classes

Example

Choosing a Smalltalk-like Collection Class

Bags Versus Sets Versus Hash Tables

Sequenceable Classes

Dictionaries

Virtual Functions Inherited From RWCollection

insert()

find() and Friends

remove() Functions

apply() Functions

Functions clear() and clearAndDestroy()

Other Functions Shared by All RWCollections

Class Conversions

Inserting and Removing Other Collections

Selection

Virtual Functions Inherited from RWSequenceable

A Note on How Objects are Found

Hashing

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

This manual is related to the following products: