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

Description

Test:
create a synthetic / example mapping to verify generic mapping behaviour. We're creating a custom mapping type here, for this test only: The struct DummyDef provides a "definition context" for this custom mapping
  • there is a function to retrieve the actual target object for any target pipe stored in the mapping. In this case, we just extract the name-ID string from the pipe as result
  • as an additional sideeffect, this DummyDef::output functor also defines the Target type of this custom mapping to be std::string
  • DummyDef::buildQuery provides a template query, to be issued whenever a yet nonexistent mapping is requested. In this special case here we query for a pipe with the name "master_XXX", where XXX denotes the stream-type of the source pipe to be mapped.
See also
mobject::OutputDesignation
mobject::session::Binding

Definition at line 61 of file output-mapping-test.cpp.

Classes

struct  DummyDef
 

Private Types

typedef OutputMapping< DummyDefMapping
 

Private Member Functions

virtual void run (Arg)
 
void map_and_retrieve ()
 
void instance_copy ()
 
void default_mapping ()
 

Member Typedef Documentation

◆ Mapping

typedef OutputMapping<DummyDef> Mapping
private

Definition at line 80 of file output-mapping-test.cpp.

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 83 of file output-mapping-test.cpp.

References OutputMapping_test::default_mapping(), OutputMapping_test::instance_copy(), and OutputMapping_test::map_and_retrieve().

+ Here is the call graph for this function:

◆ map_and_retrieve()

void map_and_retrieve ( )
inlineprivate

Definition at line 92 of file output-mapping-test.cpp.

References Pipe::query().

Referenced by OutputMapping_test::run().

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

◆ instance_copy()

void instance_copy ( )
inlineprivate

Definition at line 120 of file output-mapping-test.cpp.

References Pipe::query().

Referenced by OutputMapping_test::run().

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

◆ default_mapping()

void default_mapping ( )
inlineprivate

Definition at line 152 of file output-mapping-test.cpp.

References Pipe::query().

Referenced by OutputMapping_test::run().

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

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