コード例 #1
0
    void IntrusiveStripedSetHdrTest::Striped_set_basehook_bucket_threshold()
    {
        typedef ci::StripedSet<
            bi::set<base_item_type
                , bi::compare<IntrusiveStripedSetHdrTest::less<base_item_type>>
                CDS_BOOST_INTRUSIVE_KEY_OF_VALUE_OPTION( base_item_type )
            >
            ,co::hash< IntrusiveStripedSetHdrTest::hash_int >
            ,co::resizing_policy< ci::striped_set::single_bucket_size_threshold<64> >
        > set_type;

        test<set_type>();
    }
コード例 #2
0
    void IntrusiveStripedSetHdrTest::Striped_set_basehook()
    {
        typedef ci::StripedSet<
            bi::set<base_item_type
                , bi::compare<IntrusiveStripedSetHdrTest::less<base_item_type>>
                CDS_BOOST_INTRUSIVE_KEY_OF_VALUE_OPTION( base_item_type )
            >
            ,co::mutex_policy< ci::striped_set::striping<> >
            ,co::hash< IntrusiveStripedSetHdrTest::hash_int >
        > set_type;

        test<set_type>();
    }
コード例 #3
0
    void IntrusiveStripedSetHdrTest::Striped_set_memberhook()
    {
        typedef ci::StripedSet<
            bi::set<
                member_item_type
                , bi::member_hook< member_item_type, bi::set_member_hook<>, &member_item_type::hMember>
                , bi::compare<IntrusiveStripedSetHdrTest::less<member_item_type> >
                CDS_BOOST_INTRUSIVE_KEY_OF_VALUE_OPTION( member_item_type )
            >
            ,co::hash< IntrusiveStripedSetHdrTest::hash_int >
        > set_type;

        test<set_type>();
    }
コード例 #4
0
    void IntrusiveStripedSetHdrTest::Striped_avl_set_basehook_bucket_threshold_rt()
    {
        typedef ci::StripedSet<
            bi::avl_set<base_item_type
                , bi::compare<IntrusiveStripedSetHdrTest::less<base_item_type> >
                CDS_BOOST_INTRUSIVE_KEY_OF_VALUE_OPTION( base_item_type )
            >
            ,co::hash< IntrusiveStripedSetHdrTest::hash_int >
            ,co::resizing_policy< ci::striped_set::single_bucket_size_threshold<0> >
        > set_type;

        set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>(256) );
        test_with( s );
    }
コード例 #5
0
    void IntrusiveStripedSetHdrTest::Striped_set_memberhook_bucket_threshold()
    {
        typedef ci::StripedSet<
            bi::set<
                member_item_type
                , bi::member_hook< member_item_type, bi::set_member_hook<>, &member_item_type::hMember>
                , bi::compare<IntrusiveStripedSetHdrTest::less<member_item_type> >
                CDS_BOOST_INTRUSIVE_KEY_OF_VALUE_OPTION( member_item_type )
            >
            ,co::hash< IntrusiveStripedSetHdrTest::hash_int >
            ,co::resizing_policy< ci::striped_set::single_bucket_size_threshold<256> >
        > set_type;

        test<set_type>();
    }
コード例 #6
0
void IntrusiveStripedSetHdrTest::Refinable_set_memberhook_bucket_threshold_rt()
{
    typedef ci::StripedSet<
    bi::set<
    member_item_type
    , bi::member_hook< member_item_type, bi::set_member_hook<>, &member_item_type::hMember>
    , bi::compare<IntrusiveStripedSetHdrTest::less<member_item_type>>
            CDS_BOOST_INTRUSIVE_KEY_OF_VALUE_OPTION( member_item_type )
            >
            ,co::hash< IntrusiveStripedSetHdrTest::hash_int >
            ,co::resizing_policy< ci::striped_set::single_bucket_size_threshold<0> >
            ,co::mutex_policy< ci::striped_set::refinable<> >
            > set_type;

    set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>(256) );
    test_with( s );
}