Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / apps / drwho / Hash_Table.h
blob24a31d65d297545042e062cf67456a9543675dc0
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file Hash_Table.h
7 * @author Douglas C. Schmidt
8 */
9 //=============================================================================
12 #ifndef _HASH_TABLE_H
13 #define _HASH_TABLE_H
15 #include "Search_Struct.h"
17 /**
18 * @class Hash_Table
20 * @brief Provides a hash function lookup abstraction for friend records.
22 class Hash_Table : public Search_Struct
24 public:
25 Hash_Table ();
26 virtual ~Hash_Table ();
27 virtual Protocol_Record *insert (const char *key_name,
28 int max_len = MAXUSERIDNAMELEN) = 0;
29 virtual Protocol_Record *get_next_entry ();
30 virtual Protocol_Record *get_each_entry ();
32 protected:
33 enum
35 HASH_TABLE_SIZE = 500
38 Protocol_Record **hash_table;
39 Protocol_Record *current_ptr;
40 int current_index;
41 int hash_table_size;
43 #endif /* _HASH_TABLE_H */