Figure 32 shows the classes in the Smart Pointer package.
The classes in the hierarchy include formal template parameters that represent the types of associated objects. These parameters include:
Body - The type of the pointed-to object
Counter - The type of the reference-counter
Mutex - The type of the synchronization mechanism
The Threads.h++ packages use handle-body classes in different ways. In some packages, the handle classes automatically create their bodies. In these chapters, the class hierarchies include only the handle classes, because developers do not have to deal with the body classes.
Other packages require developers to explicitly select and construct a body for the handle. In these chapters, the handle and body classes appear together in class hierarchies. The hierarchies are arranged in two columns, with the handle classes on the left and the corresponding body classes on the right. A line connecting RWHandleBase and RWBodyBase represents the relationship between the set of handle and body classes, as shown in Figure 33.
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.