From: khizmax Date: Thu, 23 Oct 2014 14:36:09 +0000 (+0400) Subject: Remove SplitList specializations X-Git-Tag: v2.0.0~183 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=commitdiff_plain;h=3c27d58b15d7cad77533f84342963c2fb201a2d0 Remove SplitList specializations --- diff --git a/projects/Win/vc12/hdr-test-set.vcxproj b/projects/Win/vc12/hdr-test-set.vcxproj index 104fb2a4..b83074ce 100644 --- a/projects/Win/vc12/hdr-test-set.vcxproj +++ b/projects/Win/vc12/hdr-test-set.vcxproj @@ -578,7 +578,6 @@ - @@ -620,7 +619,6 @@ - diff --git a/projects/Win/vc12/hdr-test-set.vcxproj.filters b/projects/Win/vc12/hdr-test-set.vcxproj.filters index 47d8e4af..53055b9d 100644 --- a/projects/Win/vc12/hdr-test-set.vcxproj.filters +++ b/projects/Win/vc12/hdr-test-set.vcxproj.filters @@ -104,9 +104,6 @@ intrusive\split_list - - intrusive\split_list - intrusive\split_list @@ -188,9 +185,6 @@ container\split_list - - container\split_list - container\split_list diff --git a/tests/test-hdr/set/hdr_intrusive_set.h b/tests/test-hdr/set/hdr_intrusive_set.h index 33d3d63f..678076ec 100644 --- a/tests/test-hdr/set/hdr_intrusive_set.h +++ b/tests/test-hdr/set/hdr_intrusive_set.h @@ -1122,10 +1122,6 @@ namespace set { void PTB_member_less_lazy(); void PTB_member_cmpmix_lazy(); - void HRC_base_cmp_lazy(); - void HRC_base_less_lazy(); - void HRC_base_cmpmix_lazy(); - void RCU_GPI_base_cmp_lazy(); void RCU_GPI_base_less_lazy(); void RCU_GPI_base_cmpmix_lazy(); @@ -1301,13 +1297,6 @@ namespace set { void split_st_PTB_member_less_lazy(); void split_st_PTB_member_cmpmix_lazy(); - void split_dyn_HRC_base_cmp_lazy(); - void split_dyn_HRC_base_less_lazy(); - void split_dyn_HRC_base_cmpmix_lazy(); - void split_st_HRC_base_cmp_lazy(); - void split_st_HRC_base_less_lazy(); - void split_st_HRC_base_cmpmix_lazy(); - void split_dyn_RCU_GPI_base_cmp_lazy(); void split_dyn_RCU_GPI_base_less_lazy(); void split_dyn_RCU_GPI_base_cmpmix_lazy(); @@ -1457,10 +1446,6 @@ namespace set { CPPUNIT_TEST(PTB_member_less_lazy) CPPUNIT_TEST(PTB_member_cmpmix_lazy) - CPPUNIT_TEST(HRC_base_cmp_lazy) - CPPUNIT_TEST(HRC_base_less_lazy) - CPPUNIT_TEST(HRC_base_cmpmix_lazy) - CPPUNIT_TEST(RCU_GPI_base_cmp_lazy) CPPUNIT_TEST(RCU_GPI_base_less_lazy) CPPUNIT_TEST(RCU_GPI_base_cmpmix_lazy) @@ -1634,13 +1619,6 @@ namespace set { CPPUNIT_TEST(split_st_PTB_member_less_lazy) CPPUNIT_TEST(split_st_PTB_member_cmpmix_lazy) - CPPUNIT_TEST(split_dyn_HRC_base_cmp_lazy) - CPPUNIT_TEST(split_dyn_HRC_base_less_lazy) - CPPUNIT_TEST(split_dyn_HRC_base_cmpmix_lazy) - CPPUNIT_TEST(split_st_HRC_base_cmp_lazy) - CPPUNIT_TEST(split_st_HRC_base_less_lazy) - CPPUNIT_TEST(split_st_HRC_base_cmpmix_lazy) - CPPUNIT_TEST(split_dyn_RCU_GPI_base_cmp_lazy) CPPUNIT_TEST(split_dyn_RCU_GPI_base_less_lazy) CPPUNIT_TEST(split_dyn_RCU_GPI_base_cmpmix_lazy) diff --git a/tests/test-hdr/set/hdr_intrusive_splitlist_set_hrc_lazy.cpp b/tests/test-hdr/set/hdr_intrusive_splitlist_set_hrc_lazy.cpp deleted file mode 100644 index 7b2c3176..00000000 --- a/tests/test-hdr/set/hdr_intrusive_splitlist_set_hrc_lazy.cpp +++ /dev/null @@ -1,155 +0,0 @@ -//$$CDS-header$$ - -#include "set/hdr_intrusive_set.h" -#include -#include - -namespace set { - - void IntrusiveHashSetHdrTest::split_dyn_HRC_base_cmp_lazy() - { - typedef base_int_item< ci::split_list::node< ci::lazy_list::node > > item; - typedef ci::LazyList< cds::gc::HRC - ,item - ,ci::lazy_list::make_traits< - ci::opt::hook< ci::lazy_list::base_hook< co::gc > > - ,co::compare< cmp > - ,ci::opt::disposer< faked_disposer > - >::type - > ord_list; - - typedef ci::SplitListSet< cds::gc::HRC, ord_list, - ci::split_list::make_traits< - co::hash< hash_int > - ,ci::split_list::dynamic_bucket_table - ,co::memory_model - >::type - > set; - static_assert( set::options::dynamic_bucket_table, "Set has static bucket table" ); - - test_int(); - } - - void IntrusiveHashSetHdrTest::split_dyn_HRC_base_less_lazy() - { - typedef base_int_item< ci::split_list::node< ci::lazy_list::node > > item; - typedef ci::LazyList< cds::gc::HRC - ,item - ,ci::lazy_list::make_traits< - ci::opt::hook< ci::lazy_list::base_hook< co::gc > > - ,co::less< less > - ,ci::opt::disposer< faked_disposer > - >::type - > ord_list; - - typedef ci::SplitListSet< cds::gc::HRC, ord_list, - ci::split_list::make_traits< - co::hash< hash_int > - ,co::memory_model - >::type - > set; - static_assert( set::options::dynamic_bucket_table, "Set has static bucket table" ); - - test_int(); - } - - void IntrusiveHashSetHdrTest::split_dyn_HRC_base_cmpmix_lazy() - { - typedef base_int_item< ci::split_list::node > > item; - typedef ci::LazyList< cds::gc::HRC - ,item - ,ci::lazy_list::make_traits< - ci::opt::hook< ci::lazy_list::base_hook< co::gc > > - ,co::less< less > - ,co::compare< cmp > - ,ci::opt::disposer< faked_disposer > - >::type - > ord_list; - - typedef ci::SplitListSet< cds::gc::HRC, ord_list, - ci::split_list::make_traits< - co::hash< hash_int > - ,co::item_counter< simple_item_counter > - ,ci::split_list::dynamic_bucket_table - >::type - > set; - static_assert( set::options::dynamic_bucket_table, "Set has static bucket table" ); - - test_int(); - } - - // Static bucket table - void IntrusiveHashSetHdrTest::split_st_HRC_base_cmp_lazy() - { - typedef base_int_item< ci::split_list::node< ci::lazy_list::node > > item; - typedef ci::LazyList< cds::gc::HRC - ,item - ,ci::lazy_list::make_traits< - ci::opt::hook< ci::lazy_list::base_hook< co::gc > > - ,co::compare< cmp > - ,ci::opt::disposer< faked_disposer > - >::type - > ord_list; - - typedef ci::SplitListSet< cds::gc::HRC, ord_list, - ci::split_list::make_traits< - co::hash< hash_int > - ,ci::split_list::dynamic_bucket_table - ,co::memory_model - >::type - > set; - static_assert( !set::options::dynamic_bucket_table, "Set has dynamic bucket table" ); - - test_int(); - } - - void IntrusiveHashSetHdrTest::split_st_HRC_base_less_lazy() - { - typedef base_int_item< ci::split_list::node< ci::lazy_list::node > > item; - typedef ci::LazyList< cds::gc::HRC - ,item - ,ci::lazy_list::make_traits< - ci::opt::hook< ci::lazy_list::base_hook< co::gc > > - ,co::less< less > - ,ci::opt::disposer< faked_disposer > - >::type - > ord_list; - - typedef ci::SplitListSet< cds::gc::HRC, ord_list, - ci::split_list::make_traits< - co::hash< hash_int > - ,ci::split_list::dynamic_bucket_table - ,co::memory_model - >::type - > set; - static_assert( !set::options::dynamic_bucket_table, "Set has dynamic bucket table" ); - - test_int(); - } - - void IntrusiveHashSetHdrTest::split_st_HRC_base_cmpmix_lazy() - { - typedef base_int_item< ci::split_list::node > > item; - typedef ci::LazyList< cds::gc::HRC - ,item - ,ci::lazy_list::make_traits< - ci::opt::hook< ci::lazy_list::base_hook< co::gc > > - ,co::less< less > - ,co::compare< cmp > - ,ci::opt::disposer< faked_disposer > - >::type - > ord_list; - - typedef ci::SplitListSet< cds::gc::HRC, ord_list, - ci::split_list::make_traits< - co::hash< hash_int > - ,co::item_counter< simple_item_counter > - ,ci::split_list::dynamic_bucket_table - >::type - > set; - static_assert( !set::options::dynamic_bucket_table, "Set has dynamic bucket table" ); - - test_int(); - } - -} // namespace set diff --git a/tests/test-hdr/set/hdr_set.h b/tests/test-hdr/set/hdr_set.h index 46310532..cb6cf43b 100644 --- a/tests/test-hdr/set/hdr_set.h +++ b/tests/test-hdr/set/hdr_set.h @@ -861,10 +861,6 @@ namespace set { void Lazy_PTB_less(); void Lazy_PTB_cmpmix(); - void Lazy_HRC_cmp(); - void Lazy_HRC_less(); - void Lazy_HRC_cmpmix(); - void Lazy_RCU_GPI_cmp(); void Lazy_RCU_GPI_less(); void Lazy_RCU_GPI_cmpmix(); @@ -930,10 +926,6 @@ namespace set { void Split_Lazy_PTB_less(); void Split_Lazy_PTB_cmpmix(); - void Split_Lazy_HRC_cmp(); - void Split_Lazy_HRC_less(); - void Split_Lazy_HRC_cmpmix(); - void Split_Lazy_RCU_GPI_cmp(); void Split_Lazy_RCU_GPI_less(); void Split_Lazy_RCU_GPI_cmpmix(); @@ -999,10 +991,6 @@ namespace set { CPPUNIT_TEST(Lazy_PTB_less) CPPUNIT_TEST(Lazy_PTB_cmpmix) - CPPUNIT_TEST(Lazy_HRC_cmp) - CPPUNIT_TEST(Lazy_HRC_less) - CPPUNIT_TEST(Lazy_HRC_cmpmix) - CPPUNIT_TEST(Lazy_RCU_GPI_cmp) CPPUNIT_TEST(Lazy_RCU_GPI_less) CPPUNIT_TEST(Lazy_RCU_GPI_cmpmix) @@ -1067,10 +1055,6 @@ namespace set { CPPUNIT_TEST(Split_Lazy_PTB_less) CPPUNIT_TEST(Split_Lazy_PTB_cmpmix) - CPPUNIT_TEST(Split_Lazy_HRC_cmp) - CPPUNIT_TEST(Split_Lazy_HRC_less) - CPPUNIT_TEST(Split_Lazy_HRC_cmpmix) - CPPUNIT_TEST(Split_Lazy_RCU_GPI_cmp) CPPUNIT_TEST(Split_Lazy_RCU_GPI_less) CPPUNIT_TEST(Split_Lazy_RCU_GPI_cmpmix) diff --git a/tests/test-hdr/set/hdr_splitlist_set_lazy_hrc.cpp b/tests/test-hdr/set/hdr_splitlist_set_lazy_hrc.cpp deleted file mode 100644 index 875fbfff..00000000 --- a/tests/test-hdr/set/hdr_splitlist_set_lazy_hrc.cpp +++ /dev/null @@ -1,128 +0,0 @@ -//$$CDS-header$$ - -#include "set/hdr_set.h" -#include -#include - -namespace set { - - namespace { - struct HRC_cmp_traits: public cc::split_list::type_traits - { - typedef cc::lazy_list_tag ordered_list; - typedef HashSetHdrTest::hash_int hash; - typedef HashSetHdrTest::simple_item_counter item_counter; - typedef cc::opt::v::relaxed_ordering memory_model; - enum { dynamic_bucket_table = false }; - - struct ordered_list_traits: public cc::lazy_list::type_traits - { - typedef HashSetHdrTest::cmp compare; - }; - }; - - struct HRC_less_traits: public cc::split_list::type_traits - { - typedef cc::lazy_list_tag ordered_list; - typedef HashSetHdrTest::hash_int hash; - typedef HashSetHdrTest::simple_item_counter item_counter; - typedef cc::opt::v::sequential_consistent memory_model; - enum { dynamic_bucket_table = false }; - - struct ordered_list_traits: public cc::lazy_list::type_traits - { - typedef HashSetHdrTest::less less; - }; - }; - - struct HRC_cmpmix_traits: public cc::split_list::type_traits - { - typedef cc::lazy_list_tag ordered_list; - typedef HashSetHdrTest::hash_int hash; - typedef HashSetHdrTest::simple_item_counter item_counter; - - struct ordered_list_traits: public cc::lazy_list::type_traits - { - typedef HashSetHdrTest::cmp compare; - typedef HashSetHdrTest::less less; - }; - }; - } - - void HashSetHdrTest::Split_Lazy_HRC_cmp() - { - // traits-based version - typedef cc::SplitListSet< cds::gc::HRC, item, HRC_cmp_traits > set; - - test_int< set >(); - - // option-based version - typedef cc::SplitListSet< cds::gc::HRC, item, - cc::split_list::make_traits< - cc::split_list::ordered_list - ,cc::opt::hash< hash_int > - ,cc::opt::item_counter< simple_item_counter > - ,cc::opt::memory_model< cc::opt::v::relaxed_ordering > - ,cc::split_list::dynamic_bucket_table< true > - ,cc::split_list::ordered_list_traits< - cc::lazy_list::make_traits< - cc::opt::compare< cmp > - >::type - > - >::type - > opt_set; - test_int< opt_set >(); - } - - void HashSetHdrTest::Split_Lazy_HRC_less() - { - // traits-based version - typedef cc::SplitListSet< cds::gc::HRC, item, HRC_less_traits > set; - - test_int< set >(); - - // option-based version - typedef cc::SplitListSet< cds::gc::HRC, item, - cc::split_list::make_traits< - cc::split_list::ordered_list - ,cc::opt::hash< hash_int > - ,cc::opt::item_counter< simple_item_counter > - ,cc::opt::memory_model< cc::opt::v::sequential_consistent > - ,cc::split_list::dynamic_bucket_table< false > - ,cc::split_list::ordered_list_traits< - cc::lazy_list::make_traits< - cc::opt::less< less > - >::type - > - >::type - > opt_set; - test_int< opt_set >(); - } - - void HashSetHdrTest::Split_Lazy_HRC_cmpmix() - { - // traits-based version - typedef cc::SplitListSet< cds::gc::HRC, item, HRC_cmpmix_traits > set; - test_int< set >(); - - // option-based version - typedef cc::SplitListSet< cds::gc::HRC, item, - cc::split_list::make_traits< - cc::split_list::ordered_list - ,cc::opt::hash< hash_int > - ,cc::opt::item_counter< simple_item_counter > - ,cc::split_list::ordered_list_traits< - cc::lazy_list::make_traits< - cc::opt::less< less > - ,cc::opt::compare< cmp > - >::type - > - >::type - > opt_set; - test_int< opt_set >(); - } - - -} // namespace set - -