Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
generator-test.cpp File Reference

Go to the source code of this file.

Description

what are we doing here??

the following test composes both an interface and the corresponding implementation by instantiating "building block" templates over a collection of types. The resulting class ends up inheriting a virtual function instantiated for each of the types in the list. (remember: normally the number and signature of all virtual functions need to be absolutely fixed in the class definition)

See also
typelist-test.cpp
generator.hpp
lumiera::query::ConfigRules a real world usage example

Definition in file generator-test.cpp.

#include "lib/test/run.hpp"
#include "lib/format-string.hpp"
#include "lib/meta/generator.hpp"
#include <iostream>
#include <string>

Functions

 _Pragma ("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Woverloaded-virtual\"") namespace lib
 

Function Documentation

◆ _Pragma()

_Pragma ( "GCC diagnostic push"  )

template for generating lots of different test types

Use this building block for assembling an abstract interface

Use this building block for chaining corresponding implementation classes.

Test:
check the helpers for dealing with lists-of-types. Build an interface and an implementation class by inheriting template instantiations for a collection of classes

Register this test class...

Definition at line 46 of file generator-test.cpp.

References INSTANCEOF, and LAUNCHER.