Lumiera  0.pre.03
»edit your freedom«
VerbVisitorDispatch_test Class Reference

Description

Test:
Demonstration/Concept: build pre-bound VerbPack objects to embody a specific operation on the "receiver" interface, then invoke them on a given concrete implementation.
See also
DiffListApplication_test

Definition at line 129 of file verb-visitor-dispatch-test.cpp.

Private Member Functions

void apply_different_receivers (TokenSeq &tokens)
 
void apply_VerboseRenderer (TokenSeq &tokens)
 
TokenSeq build_and_copy_tokens ()
 
virtual void run (Arg)
 
void verify_copy_and_equality (TokenSeq &tokens)
 

Member Function Documentation

◆ build_and_copy_tokens()

TokenSeq build_and_copy_tokens ( )
inlineprivate
Test:
verify the correct individual dispatch through a computation specific for the given verb

Definition at line 146 of file verb-visitor-dispatch-test.cpp.

◆ apply_VerboseRenderer()

void apply_VerboseRenderer ( TokenSeq &  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 171 of file verb-visitor-dispatch-test.cpp.

◆ apply_different_receivers()

void apply_different_receivers ( TokenSeq &  tokens)
inlineprivate
Test:
demonstrate that another receiver indeed invokes different implementations of the Interface functions embedded within the Verb.

Here the implementation just prints the name of the invoked verb and the arguments.

Definition at line 188 of file verb-visitor-dispatch-test.cpp.

+ Inheritance diagram for VerbVisitorDispatch_test:
+ Collaboration diagram for VerbVisitorDispatch_test:

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