Using the TDiskSet class

The TDiskSet class has the same interface as TDiskDictionary except for one parameter. Anywhere you would have used a key-value pair (with a TDiskDictionary), you should now use a single object. The same member functions are available for TDiskSet as for TDiskDictionary. Iterators associated with both classes use similar protocol except that set iterators do not support FirstKey and NextKey.

For sample code, refer to the TDiskDictionary sections and substitute the name TDiskSet for TDiskDictionary. Also replace references to key-value associations with references to a single object to be stored in the set.


[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