Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / apps / JAWS3 / jaws3 / Symbol_Table.h
blob05b798daa9a599dbaa9ddbe4697bc7ecd02860c1
1 /* -*- c++ -*- */
2 #ifndef JAWS_SYMBOL_TABLE_H
3 #define JAWS_SYMBOL_TABLE_H
5 #include "ace/Hash_Map_Manager.h"
6 #include "ace/Synch.h"
8 #include "jaws3/Export.h"
10 #define JAWS_SYMBOL_TABLE_ENTRY \
11 ACE_Hash_Map_Entry <const ACE_TCHAR *, const ACE_TCHAR *>
13 #define JAWS_SYMBOL_TABLE_BASE \
14 ACE_Hash_Map_Manager_Ex<const ACE_TCHAR *, const ACE_TCHAR *, \
15 ACE_Hash<const ACE_TCHAR *>, ACE_Equal_To<const ACE_TCHAR *>, \
16 ACE_SYNCH_NULL_MUTEX>
18 #define JAWS_SYMBOL_TABLE_ITERATOR_BASE \
19 ACE_Hash_Map_Iterator_Base_Ex<const ACE_TCHAR *, const ACE_TCHAR *, \
20 ACE_Hash<const ACE_TCHAR *>, \
21 ACE_Equal_To<const ACE_TCHAR *>, \
22 ACE_SYNCH_NULL_MUTEX>
24 #define JAWS_SYMBOL_TABLE_ITERATOR \
25 ACE_Hash_Map_Iterator_Ex<const ACE_TCHAR *, const ACE_TCHAR *, \
26 ACE_Hash<const ACE_TCHAR *>, ACE_Equal_To<const ACE_TCHAR *>, \
27 ACE_SYNCH_NULL_MUTEX>
29 #define JAWS_SYMBOL_TABLE_REVERSE_ITERATOR \
30 ACE_Hash_Map_Reverse_Iterator_Ex<const ACE_TCHAR *, const ACE_TCHAR *, \
31 ACE_Hash<const ACE_TCHAR *>, \
32 ACE_Equal_To<const ACE_TCHAR *>, \
33 ACE_SYNCH_NULL_MUTEX>
35 class JAWS_Symbol_Table;
37 class JAWS_Export JAWS_Symbol_Table : public JAWS_SYMBOL_TABLE_BASE
38 // = TITLE
39 // A class the associates a string with another string.
41 public:
42 JAWS_Symbol_Table (size_t size = 211);
43 // Hash table <size> should be a prime.
46 #endif /* JAWS_SYMBOL_TABLE_H */