summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-16 02:06:21 +0000
committerjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-16 02:06:21 +0000
commit9bdaffd526d0d0a97f9bd3e2bf8f88434bec5e23 (patch)
tree6324292827b5cf606a4497f5801c32e1d05f8812 /tests
parente0a71bf188f306f30a9221a019cae700ac369eb2 (diff)
downloadATCD-9bdaffd526d0d0a97f9bd3e2bf8f88434bec5e23.tar.gz
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r--tests/Hash_Map_Manager_Test.cpp23
1 files changed, 18 insertions, 5 deletions
diff --git a/tests/Hash_Map_Manager_Test.cpp b/tests/Hash_Map_Manager_Test.cpp
index 0f7ead872d9..8b5593a1ebd 100644
--- a/tests/Hash_Map_Manager_Test.cpp
+++ b/tests/Hash_Map_Manager_Test.cpp
@@ -76,23 +76,36 @@ class Dumb_String
{
public:
Dumb_String (char *s = 0);
+ // Default constructor
+
Dumb_String (const Dumb_String &ds);
+ // Copy constructor
~Dumb_String (void);
+ // Default destructor
- u_long hash (void) const;
+ inline u_long hash (void) const;
+ // To satisfy Hash_Map_Manager
- int operator== (char const * s) const;
- int operator== (const Dumb_String &ds) const;
+ inline int operator== (const Dumb_String &ds) const;
+ // To satisfy Hash_Map_Manager
- char * operator= (const Dumb_String &ds);
+ inline char * operator= (const Dumb_String &ds);
+ // To satisfy Hash_Map_Manager
- operator char * (void) const;
+ inline int operator== (char const * s) const;
+ inline operator char * (void) const;
+ // These make life a little easier
private:
char * s_;
+ // the string
+
int &copy_;
+ // reference counter
+
int junk_;
+ // default reference counter initializer
};
#define HASH_STRING_ENTRY ACE_Hash_Map_Entry<Dumb_String, Dumb_String>