CFDictionaryKeyCallBacks

Header: CFDictionary.h

struct CFDictionaryKeyCallBacks {
    CFIndex version; 
    CFDictionaryRetainCallBack retain; 
    CFDictionaryReleaseCallBack release; 
    CFDictionaryCopyDescriptionCallBack copyDescription; 
    CFDictionaryEqualCallBack equal; 
    CFDictionaryHashCallBack hash;
};

Field descriptions

version
retain

The callback used to add a retain for the dictionary on keys as they are used to put values into the dictionary. This callback returns the value to use as the key in the dictionary, which is usually the value parameter passed to this callback, but may be a different value if a different value should be used as the key. The dictionary's allocator is passed as the first argument.

release

The callback used to remove a retain previously added for the dictionary from keys as their values are removed from the dictionary. The dictionary's allocator is passed as the first argument.

copyDescription

The callback used to create a descriptive string representation of each key in the dictionary. This is used by the CFCopyDescription() function.

equal

The callback used to compare keys in the dictionary for equality.

hash

The callback used to compute a hash code for keys as they are used to access, add, or remove values in the dictionary.

Structure containing the callbacks for keys of a CFDictionary.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)