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

Description

Test:
Metaprogramming: how to unload the contents of a runtime typed variant sequence into ctor arguments of a (compile time typed) tuple.

This involves two problems

  • how to combine iteration, compile-time indexing and run-time access.
  • how to overcome the runtime-to-compile-time barrier, using a pre-generated double-dispatch (visitor).

The concrete problem leading to the development of such a generic converter was the necessity to receive a command invocation parameter tuple from a Record<GenNode> sent via the UI-Bus.

See also
ElementExtractor
GenNodeAccessor
BusTerm_test::commandInvocation
stage::test::Nexus::prepareDiagnosticCommandHandler
ui-bus.hpp UI-Bus

Definition at line 72 of file tuple-record-init-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void show_simpleUsage ()
 
void verify_errorHandling ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 75 of file tuple-record-init-test.cpp.

References TupleRecordInit_test::show_simpleUsage(), and TupleRecordInit_test::verify_errorHandling().

+ Here is the call graph for this function:

◆ show_simpleUsage()

void show_simpleUsage ( )
inlineprivate

Definition at line 83 of file tuple-record-init-test.cpp.

References Record< VAL >::Mutator::scope().

Referenced by TupleRecordInit_test::run().

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

◆ verify_errorHandling()

void verify_errorHandling ( )
inlineprivate

Definition at line 107 of file tuple-record-init-test.cpp.

References hash, Record< VAL >::Mutator::scope(), and VERIFY_ERROR.

Referenced by TupleRecordInit_test::run().

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

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