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

Go to the source code of this file.

Classes

struct  p1_t
 
struct  p2_t
 

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

typedef boost::mpl::map< boost::mpl::pair< std::integral_constant< bitfield_3_positions, bitfield_3_positions::pos1 >::type, int >, boost::mpl::pair< std::integral_constant< bitfield_3_positions, bitfield_3_positions::pos2 >::type, p1_t >, boost::mpl::pair< std::integral_constant< bitfield_3_positions, bitfield_3_positions::pos3 >::type, p2_t >> bitfield_3_to_type_map
 

Enumerations

enum  bitfield_3_positions : uint8_t {
  pos1 =(0x1UL<<0) , pos2 =(0x1UL<<1) , pos3 =(0x1UL<<2) , pos1 =(0x1UL<<0) ,
  pos2 =(0x1UL<<1) , pos3 =(0x1UL<<2)
}
 
enum  bitfield_3_positions : uint8_t {
  pos1 =(0x1UL<<0) , pos2 =(0x1UL<<1) , pos3 =(0x1UL<<2) , pos1 =(0x1UL<<0) ,
  pos2 =(0x1UL<<1) , pos3 =(0x1UL<<2)
}
 

Functions

 BOOST_AUTO_TEST_CASE (ctor)
 
 BOOST_AUTO_TEST_CASE (ctor_move)
 
 BOOST_AUTO_TEST_CASE (cctor)
 
 BOOST_AUTO_TEST_CASE (insert_1_item_at_find)
 
 BOOST_AUTO_TEST_CASE (insert_1_move)
 
 BOOST_AUTO_TEST_CASE (insert_1_cctor)
 
 BOOST_AUTO_TEST_CASE (insert_1_move_assign)
 
 BOOST_AUTO_TEST_CASE (insert_2_move_assign)
 
 BOOST_AUTO_TEST_CASE (clear_1_element)
 
 BOOST_AUTO_TEST_CASE (at_1_item)
 
 BOOST_AUTO_TEST_CASE (erase_1_item)
 
 BOOST_AUTO_TEST_CASE (insert_2_items_at_find)
 
 BOOST_AUTO_TEST_CASE (invalid_insert_2_erase_1_element)
 
 BOOST_AUTO_TEST_CASE (insert_2_erase_2_elements)
 
 BOOST_AUTO_TEST_CASE (insert_3_items_at)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file bitfield_map.cpp.

Typedef Documentation

◆ bitfield_3_to_type_map

typedef boost::mpl::map< boost::mpl::pair< std::integral_constant<bitfield_3_positions, bitfield_3_positions::pos1>::type, int >, boost::mpl::pair< std::integral_constant<bitfield_3_positions, bitfield_3_positions::pos2>::type, p1_t >, boost::mpl::pair< std::integral_constant<bitfield_3_positions, bitfield_3_positions::pos3>::type, p2_t >> bitfield_3_to_type_map

Definition at line 57 of file bitfield_map.cpp.

Enumeration Type Documentation

◆ bitfield_3_positions [1/2]

enum bitfield_3_positions : uint8_t
Enumerator
pos1 
pos2 
pos3 
pos1 
pos2 
pos3 

Definition at line 31 of file bitfield_map.cpp.

◆ bitfield_3_positions [2/2]

enum bitfield_3_positions : uint8_t
Enumerator
pos1 
pos2 
pos3 
pos1 
pos2 
pos3 

Definition at line 31 of file bitfield_map.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/15]

BOOST_AUTO_TEST_CASE ( at_1_item  )

Definition at line 258 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/15]

BOOST_AUTO_TEST_CASE ( cctor  )

Definition at line 101 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/15]

BOOST_AUTO_TEST_CASE ( clear_1_element  )

Definition at line 243 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/15]

BOOST_AUTO_TEST_CASE ( ctor  )

Definition at line 61 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/15]

BOOST_AUTO_TEST_CASE ( ctor_move  )

Definition at line 77 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/15]

BOOST_AUTO_TEST_CASE ( erase_1_item  )

Definition at line 267 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/15]

BOOST_AUTO_TEST_CASE ( insert_1_cctor  )

Definition at line 165 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [8/15]

BOOST_AUTO_TEST_CASE ( insert_1_item_at_find  )

Definition at line 125 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [9/15]

BOOST_AUTO_TEST_CASE ( insert_1_move  )

Definition at line 140 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [10/15]

BOOST_AUTO_TEST_CASE ( insert_1_move_assign  )

Definition at line 190 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [11/15]

BOOST_AUTO_TEST_CASE ( insert_2_erase_2_elements  )

Definition at line 305 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [12/15]

BOOST_AUTO_TEST_CASE ( insert_2_items_at_find  )

Definition at line 278 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [13/15]

BOOST_AUTO_TEST_CASE ( insert_2_move_assign  )

Definition at line 216 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [14/15]

BOOST_AUTO_TEST_CASE ( insert_3_items_at  )

Definition at line 326 of file bitfield_map.cpp.

◆ BOOST_AUTO_TEST_CASE() [15/15]

BOOST_AUTO_TEST_CASE ( invalid_insert_2_erase_1_element  )

Definition at line 292 of file bitfield_map.cpp.