diff options
author | Steve Huston <shuston@riverace.com> | 1997-08-08 00:06:49 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 1997-08-08 00:06:49 +0000 |
commit | 2905a5d29bd90af1df8c79eb1501fd5a5682faed (patch) | |
tree | f304a518241cd68d9d1495b03f851a4abd195814 /tests/Hash_Map_Manager_Test.cpp | |
parent | df48c9d4385480b95d44ea92fb783f82100f630a (diff) | |
download | ATCD-2905a5d29bd90af1df8c79eb1501fd5a5682faed.tar.gz |
Split Dumb_String class declaration to Hash_Map_Manager_Test.h to make it
easier for C Set ++ to deal with it.
Diffstat (limited to 'tests/Hash_Map_Manager_Test.cpp')
-rw-r--r-- | tests/Hash_Map_Manager_Test.cpp | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/tests/Hash_Map_Manager_Test.cpp b/tests/Hash_Map_Manager_Test.cpp index da82fca94f6..d47deb8e15b 100644 --- a/tests/Hash_Map_Manager_Test.cpp +++ b/tests/Hash_Map_Manager_Test.cpp @@ -69,44 +69,7 @@ HASH_STRING_MAP::equal (char *const &id1, char *const &id2) // Do this if we don't have template specialization -class Dumb_String - // = DESCRIPTION - // Desperate times call for desperate measures. Bug your compiler - // vendor to support template specialization. -{ -public: - Dumb_String (char *s = 0); - // Default constructor - - Dumb_String (const Dumb_String &ds); - // Copy constructor - - ~Dumb_String (void); - // Default destructor - - inline u_long hash (void) const; - // To satisfy Hash_Map_Manager - - inline int operator== (const Dumb_String &ds) const; - // To satisfy Hash_Map_Manager - - inline char * operator= (const Dumb_String &ds); - // To satisfy Hash_Map_Manager - - inline int operator== (char const * s) const; - inline operator char * (void) const; - // These make life a little easier - -private: - char * s_; - // the string - - int ©_; - // reference counter - - int junk_; - // default reference counter initializer -}; +#include "Hash_Map_Manager_Test.h" // Dumb_String is in here #define HASH_STRING_ENTRY ACE_Hash_Map_Entry<Dumb_String, Dumb_String> #define HASH_STRING_MAP \ |