3 #include "set/hdr_intrusive_multilevel_hashset.h"
4 #include <cds/intrusive/multilevel_hashset_hp.h>
5 #include "unit/print_multilevel_hashset_stat.h"
9 typedef cds::gc::HP gc_type;
12 void IntrusiveMultiLevelHashSetHdrTest::hp_stdhash()
14 typedef size_t hash_type;
16 struct traits: public ci::multilevel_hashset::traits
18 typedef get_hash<hash_type> hash_accessor;
19 typedef item_disposer disposer;
21 typedef ci::MultiLevelHashSet< gc_type, Item<hash_type>, traits > set_type;
24 typedef ci::MultiLevelHashSet<
27 typename ci::multilevel_hashset::make_traits<
28 ci::multilevel_hashset::hash_accessor< get_hash<hash_type>>
29 , ci::opt::disposer< item_disposer >
35 void IntrusiveMultiLevelHashSetHdrTest::hp_stdhash_stat()
37 typedef size_t hash_type;
39 struct traits: public ci::multilevel_hashset::traits
41 typedef get_hash<hash_type> hash_accessor;
42 typedef item_disposer disposer;
43 typedef ci::multilevel_hashset::stat<> stat;
45 typedef ci::MultiLevelHashSet< gc_type, Item<hash_type>, traits > set_type;
48 typedef ci::MultiLevelHashSet<
51 typename ci::multilevel_hashset::make_traits<
52 ci::multilevel_hashset::hash_accessor< get_hash<hash_type>>
53 , ci::opt::disposer< item_disposer >
54 ,co::stat< ci::multilevel_hashset::stat<>>
62 CPPUNIT_TEST_SUITE_REGISTRATION(set::IntrusiveMultiLevelHashSetHdrTest);