libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
shared_ptr.cpp File Reference
#include "stdafx.h"
#include <boost/test/included/unit_test.hpp>
#include <boost/mpl/list.hpp>
#include "core/shared_ptr.hpp"
Include dependency graph for shared_ptr.cpp:

Go to the source code of this file.

Classes

struct  base< Mdl >
 
struct  derived< Mdl >
 
struct  placement_dtor_test_t< Mdl >
 
struct  base_inh_t< Mdl >
 
struct  derived_inh_t< Mdl, Del >
 
struct  stack_test_t< Mdl >
 

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

typedef boost::mpl::list< sequential_mode, heavyweight_threading > thread_types
 

Functions

 BOOST_AUTO_TEST_CASE_TEMPLATE (default_ctor_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (ctor_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (placement_new_ctor_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (mixed_dtors_placement_new_ctor_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (cctor_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (move_ctor_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (unique_ptr_ctor_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (unique_ptr_move_ctor_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (reset_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (assign_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (ctor_assign_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (unique_ptr_ctor_assign_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (equals_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (not_equals_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (equals_comparators_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (not_equals_comparators_shared_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (inheritance_wrapping, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (shares_the_ptr, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (default_ctor_stack_test, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (ctor_stack_test, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (shares_stack_test, Mdl, thread_types)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file shared_ptr.cpp.

Typedef Documentation

◆ thread_types

typedef boost::mpl::list< sequential_mode, heavyweight_threading> thread_types

Definition at line 34 of file shared_ptr.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( assign_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( cctor_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( ctor_assign_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( ctor_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( ctor_stack_test  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [6/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( default_ctor_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [7/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( default_ctor_stack_test  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [8/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( equals_comparators_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [9/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( equals_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [10/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( inheritance_wrapping  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [11/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( mixed_dtors_placement_new_ctor_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [12/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( move_ctor_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [13/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( not_equals_comparators_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [14/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( not_equals_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [15/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( placement_new_ctor_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [16/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( reset_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [17/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( shares_stack_test  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [18/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( shares_the_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [19/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( unique_ptr_ctor_assign_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [20/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( unique_ptr_ctor_shared_ptr  ,
Mdl  ,
thread_types   
)

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [21/21]

BOOST_AUTO_TEST_CASE_TEMPLATE ( unique_ptr_move_ctor_shared_ptr  ,
Mdl  ,
thread_types   
)