Shared attributes

TSharedAttribute is the base class for all attributes that are surrogates for internal attributes. The only data member of this, or any of its derived classes, is a pointer to an instance that descends from TInternalAttribute.

Typically you derive from TSharedAttribute and TInternalAttribute in pairs. If you derive from TSharedAttribute, you must also derive from TInternalAttribute and implement attribute-specific behavior.

It is not possible to use TSharedAttribute directly with your own internal attribute. You need to derive from both.

TSharedAttribute is not synchronized and therefore not multithread safe. Figure 48 shows the public and protected member functions for TSharedAttribute.



[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