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

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

typedef boost::mpl::list< api_lock_traits< platform_api, sequential_mode >::atomic_counter_type< long >, api_lock_traits< platform_api, heavyweight_threading >::atomic_counter_type< long >, api_lock_traits< platform_api, heavyweight_threading >::atomic_counter_type< double >> ctr_types
 

Functions

 BOOST_AUTO_TEST_CASE_TEMPLATE (default_ctor, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (ctor, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (cctor, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (assign, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (increment, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (postincrement, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (decrement, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (postdecrement, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (add_one, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (subtract_one, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (apply_plus, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (apply_minus, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (apply_multiply, ctr_t, ctr_types)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file atomic_counter.cpp.

Typedef Documentation

◆ ctr_types

typedef boost::mpl::list< api_lock_traits<platform_api, sequential_mode>::atomic_counter_type<long>, api_lock_traits<platform_api, heavyweight_threading>::atomic_counter_type<long>, api_lock_traits<platform_api, heavyweight_threading>::atomic_counter_type<double>> ctr_types

Definition at line 35 of file atomic_counter.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/13]

BOOST_AUTO_TEST_CASE_TEMPLATE ( add_one  ,
ctr_t  ,
ctr_types   
)

Definition at line 113 of file atomic_counter.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/13]

BOOST_AUTO_TEST_CASE_TEMPLATE ( apply_minus  ,
ctr_t  ,
ctr_types   
)

Definition at line 134 of file atomic_counter.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/13]

BOOST_AUTO_TEST_CASE_TEMPLATE ( apply_multiply  ,
ctr_t  ,
ctr_types   
)

Definition at line 141 of file atomic_counter.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/13]

BOOST_AUTO_TEST_CASE_TEMPLATE ( apply_plus  ,
ctr_t  ,
ctr_types   
)

Definition at line 127 of file atomic_counter.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/13]

BOOST_AUTO_TEST_CASE_TEMPLATE ( assign  ,
ctr_t  ,
ctr_types   
)

Definition at line 73 of file atomic_counter.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [6/13]

BOOST_AUTO_TEST_CASE_TEMPLATE ( cctor  ,
ctr_t  ,
ctr_types   
)

Definition at line 60 of file atomic_counter.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [7/13]

BOOST_AUTO_TEST_CASE_TEMPLATE ( ctor  ,
ctr_t  ,
ctr_types   
)

Definition at line 54 of file atomic_counter.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [8/13]

BOOST_AUTO_TEST_CASE_TEMPLATE ( decrement  ,
ctr_t  ,
ctr_types   
)

Definition at line 97 of file atomic_counter.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [9/13]

BOOST_AUTO_TEST_CASE_TEMPLATE ( default_ctor  ,
ctr_t  ,
ctr_types   
)

Definition at line 39 of file atomic_counter.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [10/13]

BOOST_AUTO_TEST_CASE_TEMPLATE ( increment  ,
ctr_t  ,
ctr_types   
)

Definition at line 81 of file atomic_counter.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [11/13]

BOOST_AUTO_TEST_CASE_TEMPLATE ( postdecrement  ,
ctr_t  ,
ctr_types   
)

Definition at line 105 of file atomic_counter.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [12/13]

BOOST_AUTO_TEST_CASE_TEMPLATE ( postincrement  ,
ctr_t  ,
ctr_types   
)

Definition at line 89 of file atomic_counter.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [13/13]

BOOST_AUTO_TEST_CASE_TEMPLATE ( subtract_one  ,
ctr_t  ,
ctr_types   
)

Definition at line 120 of file atomic_counter.cpp.