Lumiera  0.pre.03
»edit your freedom«
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 133 of file verb-function-dispatch-test.cpp.

Private Member Functions

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

Member Function Documentation

◆ 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 165 of file verb-function-dispatch-test.cpp.

◆ 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 180 of file verb-function-dispatch-test.cpp.

+ Inheritance diagram for VerbFunctionDispatch_test:
+ Collaboration diagram for VerbFunctionDispatch_test:

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