![]() |
Project
|
#include <boost/test/unit_test.hpp>
#include <boost/preprocessor/arithmetic/inc.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>
#include <stdexcept>
#include <string>
#include "CommonUtils/EnumFlags.h"
Go to the source code of this file.
Macros | |
#define | BOOST_TEST_MODULE Test Flags |
#define | BOOST_TEST_MAIN |
#define | BOOST_TEST_DYN_LINK |
#define | ENUM_BIT_NAME(n) Bit##n |
#define | ENUM_BIT_NAME_EXPAND(n) ENUM_BIT_NAME(n) |
#define | ENUM_BIT(z, n, _) ENUM_BIT_NAME_EXPAND(BOOST_PP_INC(n)) = (n), |
Enumerations | |
enum class | TestEnum : uint8_t { Bit1 = 0 , Bit2 , Bit3 , Bit4 , Bit5VeryLongName } |
enum class | TestEnumLong : uint64_t |
Functions | |
BOOST_AUTO_TEST_CASE (Flags_test) | |
#define BOOST_TEST_DYN_LINK |
Definition at line 14 of file testEnumFlags.cxx.
#define BOOST_TEST_MAIN |
Definition at line 13 of file testEnumFlags.cxx.
#define BOOST_TEST_MODULE Test Flags |
Definition at line 12 of file testEnumFlags.cxx.
#define ENUM_BIT | ( | z, | |
n, | |||
_ | |||
) | ENUM_BIT_NAME_EXPAND(BOOST_PP_INC(n)) = (n), |
Definition at line 38 of file testEnumFlags.cxx.
Definition at line 36 of file testEnumFlags.cxx.
#define ENUM_BIT_NAME_EXPAND | ( | n | ) | ENUM_BIT_NAME(n) |
Definition at line 37 of file testEnumFlags.cxx.
|
strong |
Enumerator | |
---|---|
Bit1 | |
Bit2 | |
Bit3 | |
Bit4 | |
Bit5VeryLongName |
Definition at line 26 of file testEnumFlags.cxx.
|
strong |
Definition at line 39 of file testEnumFlags.cxx.
BOOST_AUTO_TEST_CASE | ( | Flags_test | ) |
Definition at line 46 of file testEnumFlags.cxx.