Internal attributes

TInternalAttribute is the base class for all attributes that are referred by TSharedAttributes. There is only one TInternalAttribute with a given name and value. All TSharedAttributes with the same name and value point to the same TInternalAttribute. Internal attributes are reference counted, so storage is managed internally.

While TInternalAttribute is concrete, you need to derive new classes from it to define any name or data.

TInternalAttribute is not synchronized and thus is not multi-thread safe. Do not declare it static. Figure 47 shows the public and protected member functions for TInternalAttribute.



[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