Lumiera  0.pre.03
»edit your freedom«
function-closure-test.cpp File Reference

Go to the source code of this file.

Description

Testing a combination of std::function objects and metaprogramming.

Argument types will be extracted and represented as typelist, so they can be manipulated at compile time. This test uses some test functions and systematically applies or binds them to corresponding data tuples. Moreover, closure objects will be constructed in various flavours, combining a function object and a set of parameters.

See also
function-closure.hpp
control::CmdClosure real world usage example

Definition in file function-closure-test.cpp.

Classes

class  FunctionClosure_test
 

Typedefs

typedef Types< Num< 1 >, Num< 2 >, Num< 3 > >::List List1
 
typedef Types< Num< 5 >, Num< 6 >, Num< 7 > >::List List2
 

Functions

int fun0 ()
 
int fun1 (int i1)
 
int fun2 (int i1, int i2)
 
int fun3 (int i1, int i2, int i3)
 
template<char i, char ii, char iii>
int getNumberz (Num< i > one, Num< ii > two, Num< iii > three)
 special test fun accepting the terrific Num types
 
 LAUNCHER (FunctionClosure_test, "unit common")
 Register this test class... More...
 

Namespaces

 lib
 Implementation namespace for support and library code.
 

Function Documentation

◆ LAUNCHER()

lib::meta::test::LAUNCHER ( FunctionClosure_test  ,
"unit common"   
)

Register this test class...