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

Description

Test:
this test covers some extensions and variations on function closures:
  • partial application of a function, returning a partial closure
  • variation: binding an arbitrary term, might even be a nested binder
  • chaining of two functions with suitable arguments ("composition")

Definition at line 132 of file function-composition-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void check_diagnostics ()
 verify the test input data
 
void check_partialApplication ()
 
void check_functionalComposition ()
 
void check_bindToArbitraryParameter ()
 
void verify_referenceHandling ()
 

Static Private Member Functions

static long floorIt (float it)
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 135 of file function-composition-test.cpp.

References FunctionComposition_test::check_bindToArbitraryParameter(), FunctionComposition_test::check_diagnostics(), FunctionComposition_test::check_functionalComposition(), FunctionComposition_test::check_partialApplication(), and FunctionComposition_test::verify_referenceHandling().

+ Here is the call graph for this function:

◆ check_diagnostics()

void check_diagnostics ( )
inlineprivate

verify the test input data

Definition at line 148 of file function-composition-test.cpp.

Referenced by FunctionComposition_test::run().

+ Here is the caller graph for this function:

◆ check_partialApplication()

void check_partialApplication ( )
inlineprivate

Definition at line 166 of file function-composition-test.cpp.

References lib::meta::func::bindArgTuple(), PApply< SIG, VAL >::bindBack(), lib::meta::func::bindFirst(), PApply< SIG, VAL >::bindFront(), and lib::meta::func::bindLast().

Referenced by FunctionComposition_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_functionalComposition()

void check_functionalComposition ( )
inlineprivate

Definition at line 299 of file function-composition-test.cpp.

References lib::meta::func::chained().

Referenced by FunctionComposition_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_bindToArbitraryParameter()

void check_bindToArbitraryParameter ( )
inlineprivate

Definition at line 332 of file function-composition-test.cpp.

References BindToArgument< SIG, X, pos >::reduced().

Referenced by FunctionComposition_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ floorIt()

static long floorIt ( float  it)
inlinestaticprivate

static function to pass as reference for test

Definition at line 383 of file function-composition-test.cpp.

Referenced by FunctionComposition_test::verify_referenceHandling().

+ Here is the caller graph for this function:

◆ verify_referenceHandling()

void verify_referenceHandling ( )
inlineprivate
Test:
ensure reference types and arguments are handled properly

Definition at line 388 of file function-composition-test.cpp.

References lib::meta::func::bindFirst(), lib::meta::func::chained(), and FunctionComposition_test::floorIt().

Referenced by FunctionComposition_test::run().

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

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