Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
FunctionClosure_test Class Reference

Description

Test:
building a function closure for a given function or functor, while arguments are passed in as tuple
  • accessing signatures as typelists
  • bind free function to tuple
  • bind functor to tuple
Remarks
this test is rather low-level and documents the construction of the implementation; furthermore, most of this construction was obsoleted by newer language features, notably std::apply and the technique to unpack variadic-λ arguments. What remains, is now largely a definition how to handle function argument list signatures, to build suitable argument tuple types by metaprogramming, and finally to pass them to construct a binder.
See also
function-composition-test.cpp (advanced features like partial application)

Definition at line 92 of file function-closure-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void verify_setup ()
 verify the test input data
 
void check_signatureTypeManip ()
 
void check_bindFree ()
 
void check_bindFunc ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 95 of file function-closure-test.cpp.

References FunctionClosure_test::check_bindFree(), FunctionClosure_test::check_bindFunc(), FunctionClosure_test::check_signatureTypeManip(), and FunctionClosure_test::verify_setup().

+ Here is the call graph for this function:

◆ verify_setup()

void verify_setup ( )
inlineprivate

verify the test input data

See also
TypeListManipl_test::check_diagnostics() for explanation of the DISPLAY and EXPECT macros.

Definition at line 109 of file function-closure-test.cpp.

References DISPLAY.

Referenced by FunctionClosure_test::run().

+ Here is the caller graph for this function:

◆ check_signatureTypeManip()

void check_signatureTypeManip ( )
inlineprivate

Definition at line 120 of file function-closure-test.cpp.

References DISPLAY.

Referenced by FunctionClosure_test::run().

+ Here is the caller graph for this function:

◆ check_bindFree()

void check_bindFree ( )
inlineprivate

Definition at line 139 of file function-closure-test.cpp.

References DUMPVAL.

Referenced by FunctionClosure_test::run().

+ Here is the caller graph for this function:

◆ check_bindFunc()

void check_bindFunc ( )
inlineprivate

Definition at line 168 of file function-closure-test.cpp.

Referenced by FunctionClosure_test::run().

+ Here is the caller graph for this function:
+ Inheritance diagram for FunctionClosure_test:
+ Collaboration diagram for FunctionClosure_test:

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