Main Page | Modules | Data Structures | Data Fields

peak_dict_key_ops_s Struct Reference
[Dictionary]

#include <dict.h>


Detailed Description

Structure containing the callbacks for keys of a dictionary.


Data Fields

peak_dict_retain_callback retain
 Retain callback.

peak_dict_release_callback release
 Release callback.

peak_dict_equal_callback equal
 Equal callback.

peak_dict_hash_callback hash
 Hash callback.


Field Documentation

peak_dict_equal_callback peak_dict_key_ops_s::equal
 

Equal callback.

It's used to compare keys when accessing a value. If NULL, pointer equality is used.

peak_dict_hash_callback peak_dict_key_ops_s::hash
 

Hash callback.

It's used to hash keys when adding an entry. If NULL, pointer hashing is used.

peak_dict_release_callback peak_dict_key_ops_s::release
 

Release callback.

If not NULL, it's called with the key as argument when an entry is removed from the dictionary.

peak_dict_retain_callback peak_dict_key_ops_s::retain
 

Retain callback.

If not NULL, it's called with the key as argument when an entry is added in the dictionary.


The documentation for this struct was generated from the following file:
Generated on Thu Jan 8 18:16:23 2004 for the PEAK Library by doxygen     SourceForge.net Logo