Removed old set unit tests
[libcds.git] / tests / test-hdr / set / hdr_intrusive_striped_set.h
diff --git a/tests/test-hdr/set/hdr_intrusive_striped_set.h b/tests/test-hdr/set/hdr_intrusive_striped_set.h
deleted file mode 100644 (file)
index 4cba53f..0000000
+++ /dev/null
@@ -1,823 +0,0 @@
-/*
-    This file is a part of libcds - Concurrent Data Structures library
-
-    (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
-
-    Source code repo: http://github.com/khizmax/libcds/
-    Download: http://sourceforge.net/projects/libcds/files/
-    
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions are met:
-
-    * Redistributions of source code must retain the above copyright notice, this
-      list of conditions and the following disclaimer.
-
-    * Redistributions in binary form must reproduce the above copyright notice,
-      this list of conditions and the following disclaimer in the documentation
-      and/or other materials provided with the distribution.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.     
-*/
-
-#ifndef CDSTEST_HDR_INTRUSIVE_STRIPED_SET_H
-#define CDSTEST_HDR_INTRUSIVE_STRIPED_SET_H
-
-#include "cppunit/cppunit_proxy.h"
-#include <cds/opt/hash.h>
-
-#include <boost/version.hpp>
-
-// boost 1.59 bug: intrusive containers require implicit conversion from value_type to key_type
-// Fixed in boost 1.60+
-#if BOOST_VERSION == 105900
-#   define CDSTEST_BOOST_INTRUSIVE_REQUIRES_IMPLICIT_CONVERSION_WORKAROUND
-#else
-#   define CDSTEST_BOOST_INTRUSIVE_REQUIRES_IMPLICIT_CONVERSION_WORKAROUND explicit
-#endif
-
-// cds::intrusive namespace forward declaration
-namespace cds { namespace intrusive {}}
-
-namespace set {
-    namespace ci = cds::intrusive;
-    namespace co = cds::opt;
-
-    template <typename T>
-    struct get_int_key
-    {
-        int operator()( T const & v ) const
-        {
-            return v.key();
-        }
-    };
-
-    template <>
-    struct get_int_key<int>
-    {
-        int operator()( int i ) const
-        {
-            return i;
-        }
-    };
-
-    // MichaelHashSet
-    class IntrusiveStripedSetHdrTest: public CppUnitMini::TestCase
-    {
-    public:
-        struct stat
-        {
-            unsigned int nDisposeCount  ;   // count of disposer calling
-            unsigned int nFindCount     ;   // count of find-functor calling
-            unsigned int nFindArgCount;
-            unsigned int nInsertCount;
-            unsigned int nUpdateNewCount;
-            unsigned int nUpdateCount;
-            unsigned int nEraseCount;
-
-            stat()
-            {
-                memset( this, 0, sizeof(*this));
-            }
-
-            stat& operator=( stat const& s)
-            {
-                memcpy( this, &s, sizeof(*this));
-                return *this;
-            }
-        };
-
-        struct item
-        {
-            int nKey;
-            int nVal;
-
-            item()
-            {}
-
-            explicit item( int key )
-                : nKey( key )
-                , nVal(0)
-            {}
-
-            item(int key, int val)
-                : nKey( key )
-                , nVal(val)
-            {}
-
-            item(const item& v )
-                : nKey( v.nKey )
-                , nVal( v.nVal )
-            {}
-
-            int key() const
-            {
-                return nKey;
-            }
-
-            int val() const
-            {
-                return nVal;
-            }
-        };
-
-        template <typename Hook>
-        struct base_item
-            : public item
-            , public Hook
-            , public stat
-
-        {
-            base_item()
-            {}
-
-            CDSTEST_BOOST_INTRUSIVE_REQUIRES_IMPLICIT_CONVERSION_WORKAROUND
-            base_item( int key )
-                : item( key )
-            {}
-
-            base_item(int key, int val)
-                : item( key, val )
-            {}
-
-            base_item(const base_item& v )
-                : item( static_cast<item const&>(v) )
-                , stat()
-            {}
-
-            operator int() const
-            {
-                return key();
-            }
-        };
-
-        template <typename Hook>
-        struct member_item
-            : public item
-            , public stat
-        {
-            Hook hMember;
-
-            member_item()
-            {}
-
-            CDSTEST_BOOST_INTRUSIVE_REQUIRES_IMPLICIT_CONVERSION_WORKAROUND
-            member_item( int key )
-                : item( key )
-            {}
-
-            member_item(int key, int val)
-                : item( key, val )
-            {}
-
-            member_item(const member_item& v )
-                : item( static_cast<item const&>(v))
-                , stat()
-            {}
-
-            operator int() const
-            {
-                return key();
-            }
-        };
-
-        struct find_key {
-            int nKey;
-
-            find_key( int key )
-                : nKey(key)
-            {}
-        };
-
-        struct hash_int {
-            size_t operator()( int i ) const
-            {
-                return co::v::hash<int>()( i );
-            }
-            template <typename Item>
-            size_t operator()( const Item& i ) const
-            {
-                return (*this)( i.key() );
-            }
-            size_t operator()( find_key const& i) const
-            {
-                return co::v::hash<int>()( i.nKey );
-            }
-        };
-
-        template <typename T>
-        struct less
-        {
-            bool operator ()(const T& v1, const T& v2 ) const
-            {
-                return v1.key() < v2.key();
-            }
-
-            template <typename Q>
-            bool operator ()(const T& v1, const Q& v2 ) const
-            {
-                return v1.key() < v2;
-            }
-
-            template <typename Q>
-            bool operator ()(const Q& v1, const T& v2 ) const
-            {
-                return v1 < v2.key();
-            }
-
-            bool operator()( int i1, int i2 ) const
-            {
-                return i1 < i2;
-            }
-        };
-
-        template <typename T>
-        struct cmp {
-            int operator ()(const T& v1, const T& v2 ) const
-            {
-                if ( v1.key() < v2.key() )
-                    return -1;
-                return v1.key() > v2.key() ? 1 : 0;
-            }
-
-            template <typename Q>
-            int operator ()(const T& v1, const Q& v2 ) const
-            {
-                if ( v1.key() < v2 )
-                    return -1;
-                return v1.key() > v2 ? 1 : 0;
-            }
-
-            template <typename Q>
-            int operator ()(const Q& v1, const T& v2 ) const
-            {
-                if ( v1 < v2.key() )
-                    return -1;
-                return v1 > v2.key() ? 1 : 0;
-            }
-        };
-
-        struct faked_disposer
-        {
-            template <typename T>
-            void operator ()( T * p )
-            {
-                ++p->nDisposeCount;
-            }
-        };
-
-        struct insert_functor {
-            template <typename Item>
-            void operator()( Item& e)
-            {
-                ++e.nInsertCount;
-            }
-        };
-
-        struct update_functor {
-            template <typename Item>
-            void operator()( bool bNew, Item& e, Item& arg )
-            {
-                if ( bNew ) {
-                    ++e.nUpdateNewCount;
-                    CPPUNIT_ASSERT_CURRENT( &e == &arg );
-                }
-                else
-                    ++e.nUpdateCount;
-            }
-        };
-
-        struct erase_functor {
-            template< typename Item >
-            void operator()( Item& e )
-            {
-                ++e.nEraseCount;
-            }
-        };
-
-        struct find_functor {
-            template <typename Item, typename What>
-            void operator()( Item& e, What& )
-            {
-                ++e.nFindCount;
-            }
-
-            template <typename Item>
-            void operator()( Item& e, Item& w )
-            {
-                ++e.nFindCount;
-                ++w.nFindArgCount;
-            }
-        };
-
-        struct less2 {
-            template <typename Item>
-            bool operator()( Item const& e, find_key const& k ) const
-            {
-                return get_int_key<Item>()(e) < k.nKey;
-            }
-            template <typename Item>
-            bool operator()( find_key const& k, Item const& e ) const
-            {
-                return k.nKey < get_int_key<Item>()(e);
-            }
-            template <typename Item1, typename Item2>
-            bool operator()( Item1 const& e, Item2 const& k ) const
-            {
-                return get_int_key<Item1>()(e) < get_int_key<Item2>()(k);
-            }
-        };
-
-        template <typename T>
-        struct auto_dispose {
-            T * m_pArr;
-            auto_dispose( T * pArr ): m_pArr( pArr ) {}
-            ~auto_dispose() { delete[] m_pArr; }
-        };
-
-        template <class Set>
-        void test_with(Set& s)
-        {
-            typedef typename Set::value_type    value_type;
-
-            int const k1 = 10;
-            int const k2 = 25;
-            int const k3 = 51;
-
-            int const v1 = 25;
-            int const v2 = 56;
-            int const v3 = 23;
-
-            value_type e1( k1, v1 );
-            value_type e2( k2, v2 );
-            value_type e3( k3, v3);
-
-            stat s1 = e1;
-            stat s2 = e2;
-            stat s3 = e3;
-
-            CPPUNIT_ASSERT( s.empty() );
-            CPPUNIT_ASSERT( s.size() == 0 );
-
-            CPPUNIT_ASSERT( !s.contains(k1));
-            CPPUNIT_ASSERT( !s.contains(k2));
-            CPPUNIT_ASSERT( !s.contains(k3));
-
-            CPPUNIT_ASSERT( s.insert(e1));
-            CPPUNIT_ASSERT( s.contains(e1));
-            CPPUNIT_ASSERT( s.contains(k1));
-            CPPUNIT_ASSERT( !s.contains(e2));
-            CPPUNIT_ASSERT( !s.contains(e3));
-
-            CPPUNIT_ASSERT( e2.nInsertCount == 0 );
-            CPPUNIT_ASSERT( s.insert(e2, insert_functor() ));
-            CPPUNIT_ASSERT( e2.nInsertCount == 1 );
-            CPPUNIT_ASSERT( s.find(e1, find_functor() ));
-            CPPUNIT_ASSERT( e1.nFindCount == 1 );
-            CPPUNIT_ASSERT( e1.nFindArgCount == 1 );
-            CPPUNIT_ASSERT( s.find(k1, find_functor() ));
-            CPPUNIT_ASSERT( e1.nFindCount == 2 );
-            CPPUNIT_ASSERT( e1.nFindArgCount == 1 );
-            CPPUNIT_ASSERT( s.find(k2, find_functor() ));
-            CPPUNIT_ASSERT( e2.nFindCount == 1 );
-            CPPUNIT_ASSERT( e2.nFindArgCount == 0 );
-            CPPUNIT_ASSERT( s.find(e2, find_functor() ));
-            CPPUNIT_ASSERT( e2.nFindCount == 2 );
-            CPPUNIT_ASSERT( e2.nFindArgCount == 1 );
-            CPPUNIT_ASSERT( !s.find(k3, find_functor()));
-            CPPUNIT_ASSERT( e3.nFindCount == 0 );
-            CPPUNIT_ASSERT( e3.nFindArgCount == 0 );
-            CPPUNIT_ASSERT( !s.find(e3, find_functor()));
-            CPPUNIT_ASSERT( e3.nFindCount == 0 );
-            CPPUNIT_ASSERT( e3.nFindArgCount == 0 );
-
-            s1 = e1 ; s2 = e2 ; s3 = e3;
-
-            CPPUNIT_ASSERT( e3.nUpdateNewCount == 0 );
-            CPPUNIT_ASSERT( e3.nUpdateCount == 0 );
-            CPPUNIT_ASSERT(s.update(e3, update_functor(), false) == std::make_pair(false, false));
-            CPPUNIT_ASSERT(e3.nUpdateNewCount == 0);
-            CPPUNIT_ASSERT(e3.nUpdateCount == 0);
-            CPPUNIT_ASSERT( s.update( e3, update_functor() ) == std::make_pair(true, true));
-            CPPUNIT_ASSERT( e3.nUpdateNewCount == 1 );
-            CPPUNIT_ASSERT( e3.nUpdateCount == 0 );
-            CPPUNIT_ASSERT( s.find_with(find_key(k1), less2(), find_functor() ));
-            CPPUNIT_ASSERT( e1.nFindCount == s1.nFindCount + 1 );
-            CPPUNIT_ASSERT( e1.nFindArgCount == s1.nFindArgCount );
-            CPPUNIT_ASSERT( s.find_with(k1, less2(), find_functor() ));
-            CPPUNIT_ASSERT( e1.nFindCount == s1.nFindCount + 2 );
-            CPPUNIT_ASSERT( e1.nFindArgCount == s1.nFindArgCount );
-            CPPUNIT_ASSERT( s.find_with(k2, less2(), find_functor() ));
-            CPPUNIT_ASSERT( e2.nFindCount == s2.nFindCount + 1 );
-            CPPUNIT_ASSERT( e2.nFindArgCount == s2.nFindArgCount );
-            CPPUNIT_ASSERT( s.contains(find_key(k2), less2() ));
-            CPPUNIT_ASSERT( e2.nFindCount == s2.nFindCount + 1 )        ;   // unchanged, no find_functor
-            CPPUNIT_ASSERT( e2.nFindArgCount == s2.nFindArgCount );
-            CPPUNIT_ASSERT( s.contains(k3, less2() ));
-            CPPUNIT_ASSERT( e3.nFindCount == s3.nFindCount )            ;   // unchanged, no find_functor
-            CPPUNIT_ASSERT( e3.nFindArgCount == s3.nFindArgCount );
-            CPPUNIT_ASSERT( s.find_with(find_key(k3), less2(), find_functor() ));
-            CPPUNIT_ASSERT( e3.nFindCount == s3.nFindCount + 1 );
-            CPPUNIT_ASSERT( e3.nFindArgCount == s3.nFindArgCount );
-
-            s1 = e1 ; s2 = e2 ; s3 = e3;
-
-            // insert existing elements
-            {
-                value_type eu( k2, 1000 );
-                CPPUNIT_ASSERT( !s.insert( eu ));
-                CPPUNIT_ASSERT( !s.insert( eu, insert_functor() ));
-                CPPUNIT_ASSERT( e2.nInsertCount == s2.nInsertCount );
-
-                CPPUNIT_ASSERT( s.update( eu, update_functor()) == std::make_pair(true, false));
-                CPPUNIT_ASSERT( e2.nInsertCount == s2.nInsertCount );
-                CPPUNIT_ASSERT( e2.nUpdateCount == s2.nUpdateCount + 1 );
-                CPPUNIT_ASSERT( e2.nUpdateNewCount == s2.nUpdateNewCount  );
-            }
-
-            s1 = e1 ; s2 = e2 ; s3 = e3;
-
-            // unlink & erase test
-            {
-                value_type eu( k2, 10 );
-                CPPUNIT_ASSERT( !s.unlink(eu));
-            }
-
-            CPPUNIT_ASSERT( !s.empty() );
-            CPPUNIT_ASSERT( s.size() == 3 );
-
-            CPPUNIT_ASSERT( s.unlink( e1 ) );
-            CPPUNIT_ASSERT( s.erase_with( k2, less2() ) == &e2 );
-            CPPUNIT_ASSERT( s.erase( e2 ) == nullptr );
-            CPPUNIT_ASSERT( e3.nEraseCount == 0 );
-            CPPUNIT_ASSERT( s.erase_with( k3, less2(), erase_functor()) == &e3 );
-            CPPUNIT_ASSERT( e3.nEraseCount == 1 );
-            CPPUNIT_ASSERT( s.erase( k3, erase_functor() ) == nullptr );
-            CPPUNIT_ASSERT( e3.nEraseCount == 1 );
-
-            CPPUNIT_ASSERT( s.insert( e3 ) );
-            CPPUNIT_ASSERT( s.erase( e3 ) == &e3 );
-            CPPUNIT_ASSERT( e3.nEraseCount == 1 );
-
-            CPPUNIT_ASSERT( s.empty() );
-            CPPUNIT_ASSERT( s.size() == 0 );
-
-            s1 = e1 ; s2 = e2 ; s3 = e3;
-
-            // clear & clear_and_dispose test
-            CPPUNIT_ASSERT( s.insert(e1));
-            CPPUNIT_ASSERT( s.insert(e2));
-            CPPUNIT_ASSERT( s.insert(e3));
-            CPPUNIT_ASSERT( !s.empty() );
-            CPPUNIT_ASSERT( s.size() == 3 );
-            s.clear();
-            CPPUNIT_ASSERT( s.empty() );
-            CPPUNIT_ASSERT( s.size() == 0 );
-
-            CPPUNIT_ASSERT( s.insert(e1));
-            CPPUNIT_ASSERT( s.insert(e2));
-            CPPUNIT_ASSERT( s.insert(e3));
-            CPPUNIT_ASSERT( !s.empty() );
-            CPPUNIT_ASSERT( s.size() == 3 );
-
-            CPPUNIT_ASSERT( e1.nDisposeCount == 0 );
-            CPPUNIT_ASSERT( e2.nDisposeCount == 0 );
-            CPPUNIT_ASSERT( e3.nDisposeCount == 0 );
-            s.clear_and_dispose( faked_disposer() );
-            CPPUNIT_ASSERT( e1.nDisposeCount == 1 );
-            CPPUNIT_ASSERT( e2.nDisposeCount == 1 );
-            CPPUNIT_ASSERT( e3.nDisposeCount == 1 );
-            CPPUNIT_ASSERT( s.empty() );
-            CPPUNIT_ASSERT( s.size() == 0 );
-
-            // resize test (up to 64K elements)
-            size_t const nSize = 64 * 1024;
-            value_type * arr = new value_type[nSize];
-            auto_dispose<value_type> ad(arr);
-            for ( size_t i = 0; i < nSize; ++i ) {
-                value_type * p = new (arr + i) value_type( (int) i, (int) i * 2 );
-                CPPUNIT_ASSERT_EX( s.insert( *p, insert_functor() ), "i=" << i );
-                CPPUNIT_ASSERT_EX( p->nInsertCount == 1, "i=" << i );
-                //for ( size_t j = 0; j <= i; ++j ) {
-                //    if ( !s.contains((int) j) ) {
-                //        CPPUNIT_MSG( "Key " << j << " is not found after inserting key " << i );
-                //    }
-                //}
-            }
-
-            for ( size_t i = 0; i < nSize; ++i )
-                CPPUNIT_ASSERT_EX( s.contains((int) i), "Key " << i << " is not found" );
-
-            CPPUNIT_ASSERT( !s.empty() );
-            CPPUNIT_ASSERT( s.size() == nSize );
-            s.clear_and_dispose( faked_disposer() );
-            for ( size_t i = 0; i < nSize; ++i ) {
-                CPPUNIT_ASSERT_EX( arr[i].nDisposeCount == 1, "i=" << i );
-            }
-        }
-
-        template <class Set>
-        void test()
-        {
-            // default ctor
-            {
-                Set s;
-                test_with(s);
-            }
-
-            // ctor with explicit initial capacity
-            {
-                Set s(256);
-                test_with(s);
-            }
-        }
-
-        template <class Set>
-        void test_cuckoo()
-        {
-            unsigned int nProbesetSize = Set::node_type::probeset_size ? Set::node_type::probeset_size : 4;
-            Set s( 256, nProbesetSize, nProbesetSize / 2 );
-            test_with( s );
-        }
-
-        // ***********************************************************
-        // Striped set
-
-        void Striped_list_basehook_cmp();
-        void Striped_list_basehook_less();
-        void Striped_list_basehook_cmpmix();
-        void Striped_list_basehook_bucket_threshold();
-        void Striped_list_basehook_bucket_threshold_rt();
-        void Striped_list_memberhook_cmp();
-        void Striped_list_memberhook_less();
-        void Striped_list_memberhook_cmpmix();
-        void Striped_list_memberhook_bucket_threshold();
-        void Striped_list_memberhook_bucket_threshold_rt();
-
-        void Striped_slist_basehook_cmp();
-        void Striped_slist_basehook_less();
-        void Striped_slist_basehook_cmpmix();
-        void Striped_slist_basehook_bucket_threshold();
-        void Striped_slist_basehook_bucket_threshold_rt();
-        void Striped_slist_memberhook_cmp();
-        void Striped_slist_memberhook_less();
-        void Striped_slist_memberhook_cmpmix();
-        void Striped_slist_memberhook_bucket_threshold();
-        void Striped_slist_memberhook_bucket_threshold_rt();
-
-        void Striped_set_basehook();
-        void Striped_set_basehook_bucket_threshold();
-        void Striped_set_basehook_bucket_threshold_rt();
-        void Striped_set_memberhook();
-        void Striped_set_memberhook_bucket_threshold();
-        void Striped_set_memberhook_bucket_threshold_rt();
-
-        void Striped_unordered_set_basehook();
-        void Striped_unordered_set_basehook_bucket_threshold();
-        void Striped_unordered_set_basehook_bucket_threshold_rt();
-        void Striped_unordered_set_memberhook();
-        void Striped_unordered_set_memberhook_bucket_threshold();
-        void Striped_unordered_set_memberhook_bucket_threshold_rt();
-
-        void Striped_avl_set_basehook();
-        void Striped_avl_set_basehook_bucket_threshold();
-        void Striped_avl_set_basehook_bucket_threshold_rt();
-        void Striped_avl_set_memberhook();
-        void Striped_avl_set_memberhook_bucket_threshold();
-        void Striped_avl_set_memberhook_bucket_threshold_rt();
-
-        void Striped_sg_set_basehook();
-        void Striped_sg_set_basehook_bucket_threshold();
-        void Striped_sg_set_basehook_bucket_threshold_rt();
-        void Striped_sg_set_memberhook();
-        void Striped_sg_set_memberhook_bucket_threshold();
-        void Striped_sg_set_memberhook_bucket_threshold_rt();
-
-        void Striped_splay_set_basehook();
-        void Striped_splay_set_basehook_bucket_threshold();
-        void Striped_splay_set_basehook_bucket_threshold_rt();
-        void Striped_splay_set_memberhook();
-        void Striped_splay_set_memberhook_bucket_threshold();
-        void Striped_splay_set_memberhook_bucket_threshold_rt();
-
-        void Striped_treap_set_basehook();
-        void Striped_treap_set_basehook_bucket_threshold();
-        void Striped_treap_set_basehook_bucket_threshold_rt();
-        void Striped_treap_set_memberhook();
-        void Striped_treap_set_memberhook_bucket_threshold();
-        void Striped_treap_set_memberhook_bucket_threshold_rt();
-
-        // ***********************************************************
-        // Refinable set
-
-        void Refinable_list_basehook_cmp();
-        void Refinable_list_basehook_less();
-        void Refinable_list_basehook_cmpmix();
-        void Refinable_list_basehook_bucket_threshold();
-        void Refinable_list_basehook_bucket_threshold_rt();
-        void Refinable_list_memberhook_cmp();
-        void Refinable_list_memberhook_less();
-        void Refinable_list_memberhook_cmpmix();
-        void Refinable_list_memberhook_bucket_threshold();
-        void Refinable_list_memberhook_bucket_threshold_rt();
-
-        void Refinable_slist_basehook_cmp();
-        void Refinable_slist_basehook_less();
-        void Refinable_slist_basehook_cmpmix();
-        void Refinable_slist_basehook_bucket_threshold();
-        void Refinable_slist_basehook_bucket_threshold_rt();
-        void Refinable_slist_memberhook_cmp();
-        void Refinable_slist_memberhook_less();
-        void Refinable_slist_memberhook_cmpmix();
-        void Refinable_slist_memberhook_bucket_threshold();
-        void Refinable_slist_memberhook_bucket_threshold_rt();
-
-        void Refinable_set_basehook();
-        void Refinable_set_basehook_bucket_threshold();
-        void Refinable_set_basehook_bucket_threshold_rt();
-        void Refinable_set_memberhook();
-        void Refinable_set_memberhook_bucket_threshold();
-        void Refinable_set_memberhook_bucket_threshold_rt();
-
-        void Refinable_unordered_set_basehook();
-        void Refinable_unordered_set_basehook_bucket_threshold();
-        void Refinable_unordered_set_basehook_bucket_threshold_rt();
-        void Refinable_unordered_set_memberhook();
-        void Refinable_unordered_set_memberhook_bucket_threshold();
-        void Refinable_unordered_set_memberhook_bucket_threshold_rt();
-
-        void Refinable_avl_set_basehook();
-        void Refinable_avl_set_basehook_bucket_threshold();
-        void Refinable_avl_set_basehook_bucket_threshold_rt();
-        void Refinable_avl_set_memberhook();
-        void Refinable_avl_set_memberhook_bucket_threshold();
-        void Refinable_avl_set_memberhook_bucket_threshold_rt();
-
-        void Refinable_sg_set_basehook();
-        void Refinable_sg_set_basehook_bucket_threshold();
-        void Refinable_sg_set_basehook_bucket_threshold_rt();
-        void Refinable_sg_set_memberhook();
-        void Refinable_sg_set_memberhook_bucket_threshold();
-        void Refinable_sg_set_memberhook_bucket_threshold_rt();
-
-        void Refinable_splay_set_basehook();
-        void Refinable_splay_set_basehook_bucket_threshold();
-        void Refinable_splay_set_basehook_bucket_threshold_rt();
-        void Refinable_splay_set_memberhook();
-        void Refinable_splay_set_memberhook_bucket_threshold();
-        void Refinable_splay_set_memberhook_bucket_threshold_rt();
-
-        void Refinable_treap_set_basehook();
-        void Refinable_treap_set_basehook_bucket_threshold();
-        void Refinable_treap_set_basehook_bucket_threshold_rt();
-        void Refinable_treap_set_memberhook();
-        void Refinable_treap_set_memberhook_bucket_threshold();
-        void Refinable_treap_set_memberhook_bucket_threshold_rt();
-
-        CPPUNIT_TEST_SUITE(IntrusiveStripedSetHdrTest)
-            // ***********************************************************
-            // Striped set
-
-            CPPUNIT_TEST( Striped_list_basehook_cmp)
-            CPPUNIT_TEST( Striped_list_basehook_less)
-            CPPUNIT_TEST( Striped_list_basehook_cmpmix)
-            CPPUNIT_TEST( Striped_list_basehook_bucket_threshold)
-            CPPUNIT_TEST( Striped_list_basehook_bucket_threshold_rt)
-            CPPUNIT_TEST( Striped_list_memberhook_cmp)
-            CPPUNIT_TEST( Striped_list_memberhook_less)
-            CPPUNIT_TEST( Striped_list_memberhook_cmpmix)
-            CPPUNIT_TEST( Striped_list_memberhook_bucket_threshold)
-            CPPUNIT_TEST( Striped_list_memberhook_bucket_threshold_rt)
-
-            CPPUNIT_TEST( Striped_slist_basehook_cmp)
-            CPPUNIT_TEST( Striped_slist_basehook_less)
-            CPPUNIT_TEST( Striped_slist_basehook_cmpmix)
-            CPPUNIT_TEST( Striped_slist_basehook_bucket_threshold)
-            CPPUNIT_TEST( Striped_slist_basehook_bucket_threshold_rt)
-            CPPUNIT_TEST( Striped_slist_memberhook_cmp)
-            CPPUNIT_TEST( Striped_slist_memberhook_less)
-            CPPUNIT_TEST( Striped_slist_memberhook_cmpmix)
-            CPPUNIT_TEST( Striped_slist_memberhook_bucket_threshold)
-            CPPUNIT_TEST( Striped_slist_memberhook_bucket_threshold_rt)
-
-            CPPUNIT_TEST( Striped_set_basehook )
-            CPPUNIT_TEST( Striped_set_basehook_bucket_threshold )
-            CPPUNIT_TEST( Striped_set_basehook_bucket_threshold_rt )
-            CPPUNIT_TEST( Striped_set_memberhook)
-            CPPUNIT_TEST( Striped_set_memberhook_bucket_threshold )
-            CPPUNIT_TEST( Striped_set_memberhook_bucket_threshold_rt )
-
-            CPPUNIT_TEST( Striped_unordered_set_basehook )
-            CPPUNIT_TEST( Striped_unordered_set_basehook_bucket_threshold )
-            CPPUNIT_TEST( Striped_unordered_set_basehook_bucket_threshold_rt )
-            CPPUNIT_TEST( Striped_unordered_set_memberhook)
-            CPPUNIT_TEST( Striped_unordered_set_memberhook_bucket_threshold )
-            CPPUNIT_TEST( Striped_unordered_set_memberhook_bucket_threshold_rt )
-
-            CPPUNIT_TEST( Striped_avl_set_basehook )
-            CPPUNIT_TEST( Striped_avl_set_basehook_bucket_threshold )
-            CPPUNIT_TEST( Striped_avl_set_basehook_bucket_threshold_rt )
-            CPPUNIT_TEST( Striped_avl_set_memberhook)
-            CPPUNIT_TEST( Striped_avl_set_memberhook_bucket_threshold )
-            CPPUNIT_TEST( Striped_avl_set_memberhook_bucket_threshold_rt )
-
-            CPPUNIT_TEST( Striped_sg_set_basehook )
-            CPPUNIT_TEST( Striped_sg_set_basehook_bucket_threshold )
-            CPPUNIT_TEST( Striped_sg_set_basehook_bucket_threshold_rt )
-            CPPUNIT_TEST( Striped_sg_set_memberhook)
-            CPPUNIT_TEST( Striped_sg_set_memberhook_bucket_threshold )
-            CPPUNIT_TEST( Striped_sg_set_memberhook_bucket_threshold_rt )
-
-            CPPUNIT_TEST( Striped_splay_set_basehook )
-            CPPUNIT_TEST( Striped_splay_set_basehook_bucket_threshold )
-            CPPUNIT_TEST( Striped_splay_set_basehook_bucket_threshold_rt )
-            CPPUNIT_TEST( Striped_splay_set_memberhook)
-            CPPUNIT_TEST( Striped_splay_set_memberhook_bucket_threshold )
-            CPPUNIT_TEST( Striped_splay_set_memberhook_bucket_threshold_rt )
-
-            CPPUNIT_TEST( Striped_treap_set_basehook )
-            CPPUNIT_TEST( Striped_treap_set_basehook_bucket_threshold )
-            CPPUNIT_TEST( Striped_treap_set_basehook_bucket_threshold_rt )
-            CPPUNIT_TEST( Striped_treap_set_memberhook)
-            CPPUNIT_TEST( Striped_treap_set_memberhook_bucket_threshold )
-            CPPUNIT_TEST( Striped_treap_set_memberhook_bucket_threshold_rt )
-
-            // ***********************************************************
-            // Refinable set
-
-            CPPUNIT_TEST( Refinable_list_basehook_cmp)
-            CPPUNIT_TEST( Refinable_list_basehook_less)
-            CPPUNIT_TEST( Refinable_list_basehook_cmpmix)
-            CPPUNIT_TEST( Refinable_list_basehook_bucket_threshold)
-            CPPUNIT_TEST( Refinable_list_basehook_bucket_threshold_rt)
-            CPPUNIT_TEST( Refinable_list_memberhook_cmp)
-            CPPUNIT_TEST( Refinable_list_memberhook_less)
-            CPPUNIT_TEST( Refinable_list_memberhook_cmpmix)
-            CPPUNIT_TEST( Refinable_list_memberhook_bucket_threshold)
-            CPPUNIT_TEST( Refinable_list_memberhook_bucket_threshold_rt)
-
-            CPPUNIT_TEST( Refinable_slist_basehook_cmp)
-            CPPUNIT_TEST( Refinable_slist_basehook_less)
-            CPPUNIT_TEST( Refinable_slist_basehook_cmpmix)
-            CPPUNIT_TEST( Refinable_slist_basehook_bucket_threshold)
-            CPPUNIT_TEST( Refinable_slist_basehook_bucket_threshold_rt)
-            CPPUNIT_TEST( Refinable_slist_memberhook_cmp)
-            CPPUNIT_TEST( Refinable_slist_memberhook_less)
-            CPPUNIT_TEST( Refinable_slist_memberhook_cmpmix)
-            CPPUNIT_TEST( Refinable_slist_memberhook_bucket_threshold)
-            CPPUNIT_TEST( Refinable_slist_memberhook_bucket_threshold_rt)
-
-            CPPUNIT_TEST( Refinable_set_basehook )
-            CPPUNIT_TEST( Refinable_set_basehook_bucket_threshold )
-            CPPUNIT_TEST( Refinable_set_basehook_bucket_threshold_rt )
-            CPPUNIT_TEST( Refinable_set_memberhook)
-            CPPUNIT_TEST( Refinable_set_memberhook_bucket_threshold )
-            CPPUNIT_TEST( Refinable_set_memberhook_bucket_threshold_rt )
-
-            CPPUNIT_TEST( Refinable_unordered_set_basehook )
-            CPPUNIT_TEST( Refinable_unordered_set_basehook_bucket_threshold )
-            CPPUNIT_TEST( Refinable_unordered_set_basehook_bucket_threshold_rt )
-            CPPUNIT_TEST( Refinable_unordered_set_memberhook)
-            CPPUNIT_TEST( Refinable_unordered_set_memberhook_bucket_threshold )
-            CPPUNIT_TEST( Refinable_unordered_set_memberhook_bucket_threshold_rt )
-
-            CPPUNIT_TEST( Refinable_avl_set_basehook )
-            CPPUNIT_TEST( Refinable_avl_set_basehook_bucket_threshold )
-            CPPUNIT_TEST( Refinable_avl_set_basehook_bucket_threshold_rt )
-            CPPUNIT_TEST( Refinable_avl_set_memberhook)
-            CPPUNIT_TEST( Refinable_avl_set_memberhook_bucket_threshold )
-            CPPUNIT_TEST( Refinable_avl_set_memberhook_bucket_threshold_rt )
-
-            CPPUNIT_TEST( Refinable_sg_set_basehook )
-            CPPUNIT_TEST( Refinable_sg_set_basehook_bucket_threshold )
-            CPPUNIT_TEST( Refinable_sg_set_basehook_bucket_threshold_rt )
-            CPPUNIT_TEST( Refinable_sg_set_memberhook)
-            CPPUNIT_TEST( Refinable_sg_set_memberhook_bucket_threshold )
-            CPPUNIT_TEST( Refinable_sg_set_memberhook_bucket_threshold_rt )
-
-            CPPUNIT_TEST( Refinable_splay_set_basehook )
-            CPPUNIT_TEST( Refinable_splay_set_basehook_bucket_threshold )
-            CPPUNIT_TEST( Refinable_splay_set_basehook_bucket_threshold_rt )
-            CPPUNIT_TEST( Refinable_splay_set_memberhook)
-            CPPUNIT_TEST( Refinable_splay_set_memberhook_bucket_threshold )
-            CPPUNIT_TEST( Refinable_splay_set_memberhook_bucket_threshold_rt )
-
-            CPPUNIT_TEST( Refinable_treap_set_basehook )
-            CPPUNIT_TEST( Refinable_treap_set_basehook_bucket_threshold )
-            CPPUNIT_TEST( Refinable_treap_set_basehook_bucket_threshold_rt )
-            CPPUNIT_TEST( Refinable_treap_set_memberhook)
-            CPPUNIT_TEST( Refinable_treap_set_memberhook_bucket_threshold )
-            CPPUNIT_TEST( Refinable_treap_set_memberhook_bucket_threshold_rt )
-        CPPUNIT_TEST_SUITE_END()
-    };
-} // namespace set
-
-#endif // #ifndef CDSTEST_HDR_INTRUSIVE_STRIPED_SET_H