Lumiera
0.pre.03
»edit your freedom«
|
Go to the source code of this file.
The semi-automatic assembly of processing node invocation code utilises some metaprogramming to generate a factory, which in turn produces node wiring objects according to the configuration to be used for the corresponding ProcNode. This relies on generating a distinct type based on a given set of configuration flags, which is covered by this test.
Definition in file config-flags-test.cpp.
#include "lib/test/run.hpp"
#include "lib/format-string.hpp"
#include "lib/meta/generator.hpp"
#include "lib/meta/typelist-manip.hpp"
#include "lib/meta/configflags.hpp"
#include "meta/typelist-diagnostics.hpp"
#include "steam/engine/nodewiring-config.hpp"
#include "lib/format-cout.hpp"
#include "lib/util.hpp"
Classes | |
class | ConfigFlags_test |
struct | Indeed |
struct | Maybe< CONF > |
a type which is only partially defined, for some configs. More... | |
struct | Maybe< Conf1 > |
struct | Maybe< Conf3 > |
struct | Maybe< Config< TWO, Fl > > |
struct | ConfigFlags_test::TestFactory< CONF > |
struct | ConfigFlags_test::TestVisitor |
Enumerations | |
enum | Cases { ONE = 1, TWO, THR, FOU, NUM_Cases = FOU, NOT_SET = 0 } |
Macros | |
#define | CAN_INSTANTIATE(NAME) |
#define | INVOKE_CONFIG_SELECTOR(CODE) |
#define | PRINT_DELIMITER(TITLE) |
Functions | |
LAUNCHER (ConfigFlags_test, "unit common") | |
Register this test class... More... | |
Namespaces | |
lib | |
Implementation namespace for support and library code. | |
#define PRINT_DELIMITER | ( | TITLE | ) |
Definition at line 115 of file config-flags-test.cpp.
#define CAN_INSTANTIATE | ( | NAME | ) |
#define INVOKE_CONFIG_SELECTOR | ( | CODE | ) |
struct lib::meta::test::anonymous_namespace{config-flags-test.cpp}::Maybe |
lib::meta::test::LAUNCHER | ( | ConfigFlags_test | , |
"unit common" | |||
) |
Register this test class...