summaryrefslogtreecommitdiff
path: root/ACE/tests/Cache_Map_Manager_Test.h
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:30 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:30 +0000
commitc44379cc7d9c7aa113989237ab0f56db12aa5219 (patch)
tree66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/tests/Cache_Map_Manager_Test.h
parent3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff)
downloadATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz
Repo restructuring
Diffstat (limited to 'ACE/tests/Cache_Map_Manager_Test.h')
-rw-r--r--ACE/tests/Cache_Map_Manager_Test.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/ACE/tests/Cache_Map_Manager_Test.h b/ACE/tests/Cache_Map_Manager_Test.h
new file mode 100644
index 00000000000..6ca91ddf4de
--- /dev/null
+++ b/ACE/tests/Cache_Map_Manager_Test.h
@@ -0,0 +1,38 @@
+/* -*- C++ -*- */
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// tests
+//
+// = FILENAME
+// Cache_Map_Manager_Test.h
+//
+// = DESCRIPTION
+// Define class needed for generating templates. IBM C++ requires this to
+// be in its own file for auto template instantiation.
+//
+// = AUTHOR
+// Kirthika Parameswaran <kirthika@cs.wustl.edu>
+//
+// ============================================================================
+
+#ifndef __ACE_CACHE_MAP_MANAGER_TEST_H
+#define __ACE_CACHE_MAP_MANAGER_TEST_H
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+class Hash_Key
+{
+public:
+ u_long operator () (size_t t) const
+ {
+ // Simply returns t
+ return static_cast<u_long> (t);
+ }
+};
+
+#endif /* __ACE_CACHE_MAP_MANAGER_TEST_T */