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

Go to the source code of this file.

Classes

struct  A< Mdl >
 

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

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

Functions

template<class T >
T::created_type __fastcall create_1 ()
 
template<class T >
T::created_type __fastcall create_2 ()
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (default_ctor, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (fail_to_find_item, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (add_item_and_find_it, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (add_item_and_erase_it, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (add_2_items_and_find_them, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (add_2_items_and_erase_one, Mdl, thread_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (make_an_item, Mdl, thread_types)
 
template<class T , class Mdl >
T::created_type __fastcall clone_it (const typename T::mapped_type::first_type::element_type &a)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file factory.cpp.

Typedef Documentation

◆ thread_types

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

Definition at line 30 of file factory.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/7]

BOOST_AUTO_TEST_CASE_TEMPLATE ( add_2_items_and_erase_one  ,
Mdl  ,
thread_types   
)

Definition at line 105 of file factory.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/7]

BOOST_AUTO_TEST_CASE_TEMPLATE ( add_2_items_and_find_them  ,
Mdl  ,
thread_types   
)

Definition at line 93 of file factory.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/7]

BOOST_AUTO_TEST_CASE_TEMPLATE ( add_item_and_erase_it  ,
Mdl  ,
thread_types   
)

Definition at line 79 of file factory.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/7]

BOOST_AUTO_TEST_CASE_TEMPLATE ( add_item_and_find_it  ,
Mdl  ,
thread_types   
)

Definition at line 69 of file factory.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/7]

BOOST_AUTO_TEST_CASE_TEMPLATE ( default_ctor  ,
Mdl  ,
thread_types   
)

Definition at line 54 of file factory.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [6/7]

BOOST_AUTO_TEST_CASE_TEMPLATE ( fail_to_find_item  ,
Mdl  ,
thread_types   
)

Definition at line 62 of file factory.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [7/7]

BOOST_AUTO_TEST_CASE_TEMPLATE ( make_an_item  ,
Mdl  ,
thread_types   
)

Definition at line 118 of file factory.cpp.

◆ clone_it()

template<class T , class Mdl >
T::created_type __fastcall clone_it ( const typename T::mapped_type::first_type::element_type a)

Definition at line 148 of file factory.cpp.

◆ create_1()

template<class T >
T::created_type __fastcall create_1 ( )

Definition at line 45 of file factory.cpp.

References A< Mdl >::A().

◆ create_2()

template<class T >
T::created_type __fastcall create_2 ( )

Definition at line 50 of file factory.cpp.

References A< Mdl >::A().