Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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

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

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

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

References VerbVisitorDispatch_test::apply_different_receivers(), VerbVisitorDispatch_test::apply_VerboseRenderer(), VerbVisitorDispatch_test::build_and_copy_tokens(), and VerbVisitorDispatch_test::verify_copy_and_equality().

+ Here is the call graph for this function:

◆ 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.

Referenced by VerbVisitorDispatch_test::run().

+ Here is the caller graph for this function:

◆ 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.

Referenced by VerbVisitorDispatch_test::run().

+ Here is the caller graph for this function:

◆ 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.

References lib::explore().

Referenced by VerbVisitorDispatch_test::run().

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

◆ verify_copy_and_equality()

void verify_copy_and_equality ( TokenSeq &  tokens)
inlineprivate

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

References util::isSameObject().

Referenced by VerbVisitorDispatch_test::run().

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

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