Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
VerbFunctionDispatch_test Class Reference

Description

Test:
Demonstration/Concept: dispatch a specific function based on the given verbs of an embedded custom language. Actually what we want to achieve here is a specific form of double dispatch; thus the implementation relies on a variation of the visitor pattern.
See also
DiffListApplication_test

Definition at line 124 of file verb-function-dispatch-test.cpp.

Private Member Functions

virtual void run (Arg)
 
VerbSeq build_test_feed ()
 prepare a sequence of verbs for the actual tests to work on
 
void render_verbose (VerbSeq tokens)
 
void verify_dispatch (VerbSeq tokens)
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 128 of file verb-function-dispatch-test.cpp.

References VerbFunctionDispatch_test::build_test_feed(), VerbFunctionDispatch_test::render_verbose(), and VerbFunctionDispatch_test::verify_dispatch().

+ Here is the call graph for this function:

◆ build_test_feed()

VerbSeq build_test_feed ( )
inlineprivate

prepare a sequence of verbs for the actual tests to work on

Definition at line 139 of file verb-function-dispatch-test.cpp.

Referenced by VerbFunctionDispatch_test::run().

+ Here is the caller graph for this function:

◆ render_verbose()

void render_verbose ( VerbSeq  tokens)
inlineprivate
Test:
demonstrate the dispatching based on the concrete verb token. Here the implementation just prints the name of the invoked verb

Definition at line 156 of file verb-function-dispatch-test.cpp.

Referenced by VerbFunctionDispatch_test::run().

+ Here is the caller graph for this function:

◆ verify_dispatch()

void verify_dispatch ( VerbSeq  tokens)
inlineprivate
Test:
verify the correct individual dispatch through a computation specific for the given verb

Definition at line 171 of file verb-function-dispatch-test.cpp.

Referenced by VerbFunctionDispatch_test::run().

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

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