From 5211337919dce959dad4f2701f981b8e856512bc Mon Sep 17 00:00:00 2001 From: kirthika Date: Fri, 11 Jun 1999 04:05:20 +0000 Subject: Added Cache_Map_Manager and Hash_Cache_Map_Manager tests. --- tests/Map_Manager_Test.cpp | 49 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 13 deletions(-) (limited to 'tests/Map_Manager_Test.cpp') diff --git a/tests/Map_Manager_Test.cpp b/tests/Map_Manager_Test.cpp index 24ca311588f..99aa7e1d0b3 100644 --- a/tests/Map_Manager_Test.cpp +++ b/tests/Map_Manager_Test.cpp @@ -52,13 +52,20 @@ typedef ACE_Hash_Map_Entry HASH_ENTRY; typedef ACE_Active_Map_Manager ACTIVE_MAP_MANAGER; typedef ACE_Hash_Map_Manager_Ex, HASH_KEY, COMPARE_KEYS, MUTEX> - CACHE_MAP_IMPLEMENTATION; -typedef ACE_Null_Caching_Strategy + CACHE_MAP_IMPL; +typedef ACE_Hash_Map_Iterator_Ex, HASH_KEY, COMPARE_KEYS, MUTEX> + CACHE_ITER_IMPL; +typedef ACE_Hash_Map_Reverse_Iterator_Ex, HASH_KEY, COMPARE_KEYS, MUTEX> + CACHE_REV_ITER_IMPL; +typedef int ATTR; +typedef ACE_Null_Caching_Strategy_Utility + NULL_UTILITY; +typedef ACE_Null_Caching_Strategy NULL_CACHING_STRATEGY; -typedef ACE_Hash_Cache_Map_Manager - HASH_CACHE_MAP_MANAGER; -typedef ACE_Cache_Map_Manager +typedef ACE_Cache_Map_Manager CACHE_MAP_MANAGER; +typedef ACE_Hash_Cache_Map_Manager + HASH_CACHE_MAP_MANAGER; static void test_cache_map_manager (size_t table_size, @@ -922,10 +929,18 @@ template class ACE_Map_Iterator_Base; template class ACE_Map_Iterator; template class ACE_Map_Reverse_Iterator; template class ACE_Map_Entry; -template class ACE_Hash_Map_Manager_Ex , HASH_KEY, COMPARE_KEYS, MUTEX >; -template class ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, int >; -template class ACE_Hash_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, int >, int> ; -template class ACE_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, int >, int> ; +template class ACE_Hash_Map_Manager_Ex , HASH_KEY, COMPARE_KEYS, MUTEX >; +template class ACE_Hash_Map_Iterator_Base_Ex , HASH_KEY, COMPARE_KEYS, MUTEX >; +template class ACE_Hash_Map_Iterator_Ex , HASH_KEY, COMPARE_KEYS, MUTEX >; +template class ACE_Hash_Map_Reverse_Iterator_Ex , HASH_KEY, COMPARE_KEYS, MUTEX >; +template class ACE_Hash_Map_Entry >; +template class ACE_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR>; +template class ACE_Null_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR>; +template class ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR, ACE_Null_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR> >; +template class ACE_Hash_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR, ACE_Null_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR> >, ATTR > ; +template class ACE_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Hash_Map_Iterator_Ex , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Hash_Map_Reverse_Iterator_Ex , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR, ACE_Null_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR> >, ATTR> ; +template class ACE_Cache_Map_Iterator , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR, ACE_Null_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR> >, ATTR> ; +template class ACE_Cache_Map_Reverse_Iterator , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR, ACE_Null_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR> >, ATTR> ; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate ACE_Hash_Map_Manager_Ex #pragma instantiate ACE_Hash_Map_Iterator_Base_Ex @@ -944,8 +959,16 @@ template class ACE_Cache_Map_Manager #pragma instantiate ACE_Map_Reverse_Iterator #pragma instantiate ACE_Map_Entry -#pragma instantiate ACE_Hash_Map_Manager_Ex , HASH_KEY, COMPARE_KEYS, MUTEX > -#pragma instantiate ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, int > -#pragma instantiate ACE_Hash_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, int >, int> -#pragma instantiate ACE_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, int >, int> +#pragma instantiate ACE_Hash_Map_Manager_Ex , HASH_KEY, COMPARE_KEYS, MUTEX > +#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex , HASH_KEY, COMPARE_KEYS, MUTEX > +#pragma instantiate ACE_Hash_Map_Iterator_Ex , HASH_KEY, COMPARE_KEYS, MUTEX > +#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex , HASH_KEY, COMPARE_KEYS, MUTEX > +#pragma instantiate ACE_Hash_Map_Entry > +#pragma instantiate ACE_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR> +#pragma instantiate ACE_Null_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR> +#pragma instantiate ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR, ACE_Null_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR> > +#pragma instantiate ACE_Hash_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR, ACE_Null_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR> >, ATTR > +#pragma instantiate ACE_Cache_Map_Manager , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Hash_Map_Iterator_Ex , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Hash_Map_Reverse_Iterator_Ex , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR , ACE_Null_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR> >, ATTR> +#pragma instantiate ACE_Cache_Map_Iterator , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR, ACE_Null_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR> >, ATTR> +#pragma instantiate ACE_Cache_Map_Reverse_Iterator , HASH_KEY, COMPARE_KEYS, MUTEX >, ACE_Null_Caching_Strategy , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR, ACE_Null_Caching_Strategy_Utility , HASH_KEY, COMPARE_KEYS, MUTEX >, ATTR> >, ATTR> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ -- cgit v1.2.1