Go to the source code of this file.
Data Structures | |
| struct | _PmBucket |
| A bucket in a hash table. More... | |
| struct | _PmHashTable |
| A hash table. More... | |
Typedefs | |
| typedef _PmHashTable | PmHashTable |
| Hash table. | |
| typedef _PmBucket | PmBucket |
| Bucket. | |
Functions | |
| PmHashTable * | pmNewHashTable (int(*compare)(const void *key1, const void *key2), unsigned short(*hashkey)(PmHashTable *table, const void *key), void(*freeData)(void *data)) |
| Creates a new hash table. | |
| void | pmDestroyHashTable (PmHashTable *table) |
| Destroys a hash table. | |
| char | pmHashTableAdd (PmHashTable *table, void *key, void *data) |
| Adds a key and its associated data to a hash table. | |
| char | pmHashTableRemove (PmHashTable *table, void *key) |
| Removes a key and its associated data from a hash table. | |
| void * | pmHashTableGet (PmHashTable *table, void *key) |
| Returns the data with the specified key. | |
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
Bucket.
|
|
|
Hash table.
|
|
|
Destroys a hash table.
|
|
||||||||||||||||
|
Adds a key and its associated data to a hash table.
|
|
||||||||||||
|
Returns the data with the specified key.
|
|
||||||||||||
|
Removes a key and its associated data from a hash table.
|
|
||||||||||||||||
|
Creates a new hash table.
|
1.2.15-20020430