Lumiera  0.pre.03
»edit your freedom«
ConfigFlags_test Class Reference

Description

Test:
check the handling of types representing a specific configuration.

Basically, this is a bitset like feature, but working on types instead of runtime values. The Goal is to detect automatically all possible defined specialisations of some template based on such configuration-tuples. This allows us to assemble the glue code for pulling data from processing nodes out of small building blocks in all possible configurations.

Definition at line 133 of file config-flags-test.cpp.

Classes

struct  TestFactory
 
struct  TestVisitor
 

Private Member Functions

void check_ConfigSelector ()
 
void check_filter ()
 
void check_FlagInfo ()
 
void check_flags ()
 
void check_instantiation ()
 
void check_testdata ()
 
virtual void run (Arg)
 

Member Function Documentation

◆ check_flags()

void check_flags ( )
inlineprivate
Test:
conversion between list-of-flags and a config-type in both directions

Definition at line 159 of file config-flags-test.cpp.

◆ check_instantiation()

void check_instantiation ( )
inlineprivate
Test:
creates a predicate template (metafunction) returning true iff the template Maybe is defined for the configuration in question

Definition at line 184 of file config-flags-test.cpp.

◆ check_filter()

void check_filter ( )
inlineprivate
Test:
given a list of flag-tuples, we first create config-types out of them and then filter out those configs for which template Maybe is defined

Definition at line 208 of file config-flags-test.cpp.

◆ check_FlagInfo()

void check_FlagInfo ( )
inlineprivate
Test:
FlagInfo metafunction, which takes as argument a list-of-flags as well as a list-of-lists-of-flags and especially allows to apply a visitor object to the latter

Definition at line 255 of file config-flags-test.cpp.

◆ check_ConfigSelector()

void check_ConfigSelector ( )
inlineprivate
Test:
use the ConfigSelector template to build a set of factories, based on a set of configurations.

Then invoke the appropriate factory by specifying the configuration bit code

Definition at line 287 of file config-flags-test.cpp.

+ Inheritance diagram for ConfigFlags_test:
+ Collaboration diagram for ConfigFlags_test:

The documentation for this class was generated from the following file: