3 * Copyright © 2001 Novell, Inc. All Rights Reserved.
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
11 * FILENAME : nwhashcls.h
12 * DESCRIPTION : Equivalent of Hash class
14 * Author : Srivathsa M
15 * Date Created : July 26 2001
21 #define BUCKET_SIZE 37
26 struct HASHNODE *next;
29 typedef void (*HASHFORALLFUN)(void *, void *);
34 HASHNODE* MemListHash[BUCKET_SIZE];
35 void removeAll() const;
40 int insert(void *lData);
41 int remove(void *lData);
42 void forAll( void (*)(void *, void*), void * ) const;
53 typedef void (*KEYHASHFORALLFUN)(void *, void *);
55 class NWPerlKeyHashList
58 KEYHASHNODE* MemListHash[BUCKET_SIZE];
59 void removeAll() const;
64 int insert(void *key, void *lData);
65 int remove(void *key);
66 void forAll( void (*)(void *, void*), void * ) const;
67 int find(void *key, void **pData);
71 //#define DEBUG_HASH 1
74 #define DEBUGPRINT ConsolePrintf