Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
verb-function-dispatch-test.cpp File Reference

Demonstrate the concept of a verb language based on double dispatch. More...

Go to the source code of this file.

Description

Demonstrate the concept of a verb language based on double dispatch.

See also
diff-language.hpp

Definition in file verb-function-dispatch-test.cpp.

#include "lib/test/run.hpp"
#include "lib/verb-token.hpp"
#include "lib/format-string.hpp"
#include "lib/format-cout.hpp"
#include <string>
#include <vector>

Namespaces

namespace  lib
 Implementation namespace for support and library code.
 
namespace  lib::test
 Unit tests for the Lumiera support library.
 
namespace  lib::test::anonymous_namespace{verb-function-dispatch-test.cpp}
 

Typedefs

using Verb = VerbToken< Receiver, string(void)>
 
using VerbSeq = vector< Verb >
 

Classes

class  Receiver
 the "visitor" interface to invoke More...
 
class  VerboseRenderer
 a receiver of verb-tokens, which renders them verbosely More...
 
class  RecollectingReceiver
 Statefull receiver of verb-tokens. More...
 
class  VerbFunctionDispatch_test
 

Functions

const string BEGINNING ("silence")
 
Verb VERB (Receiver, woof)
 
Verb VERB (Receiver, honk)
 
Verb VERB (Receiver, moo)
 
Verb VERB (Receiver, meh)
 
 LAUNCHER (VerbFunctionDispatch_test, "unit common")
 Register this test class...