Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
SimulatedBuilderContext Struct Reference

#include "/Werk/devel/lumi/tests/core/steam/play/dummy-builder-context.hpp"

Description

helper for dummy render engine: Simulate the result of a build process, without actually running the builder.

Produces some mock pipes, model ports etc.

Definition at line 122 of file dummy-builder-context.hpp.

Public Attributes

ModelPortRegistry registry_
 
ModelPortRegistryexistingRegistry_
 
std::vector< ModelPortmodelPorts_
 
std::vector< DataSinkdataSinks_
 

Public Member Functions

 SimulatedBuilderContext ()
 setup
 
 ~SimulatedBuilderContext ()
 tear-down
 
void performMockBuild ()
 
ModelPorts getAllModelPorts ()
 
DummyOutputLink getModelPort (uint index)
 

Constructor & Destructor Documentation

◆ SimulatedBuilderContext()

setup

Definition at line 131 of file dummy-builder-context.hpp.

References SimulatedBuilderContext::performMockBuild().

+ Here is the call graph for this function:

◆ ~SimulatedBuilderContext()

tear-down

Definition at line 139 of file dummy-builder-context.hpp.

References SimulatedBuilderContext::existingRegistry_, ModelPortRegistry::setActiveInstance(), and ModelPortRegistry::shutdown().

+ Here is the call graph for this function:

Member Function Documentation

◆ performMockBuild()

void performMockBuild ( )
inline

Definition at line 148 of file dummy-builder-context.hpp.

References ModelPortRegistry::commit(), SimulatedBuilderContext::dataSinks_, ModelPortRegistry::definePort(), steam::play::test::getPipe(), steam::play::test::getTimeline(), SimulatedBuilderContext::modelPorts_, steam::play::test::namePortA(), steam::play::test::namePortB(), and SimulatedBuilderContext::registry_.

Referenced by SimulatedBuilderContext::SimulatedBuilderContext().

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

◆ getAllModelPorts()

ModelPorts getAllModelPorts ( )
inline

Definition at line 171 of file dummy-builder-context.hpp.

References lib::iter_source::eachEntry(), and SimulatedBuilderContext::modelPorts_.

Referenced by DummyPlayConnection< DEF >::getAllModelPorts().

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

◆ getModelPort()

DummyOutputLink getModelPort ( uint  index)
inline

Definition at line 177 of file dummy-builder-context.hpp.

References SimulatedBuilderContext::dataSinks_, and SimulatedBuilderContext::modelPorts_.

Referenced by DummyPlayConnection< DEF >::getModelPort().

+ Here is the caller graph for this function:

Member Data Documentation

◆ registry_

◆ existingRegistry_

ModelPortRegistry* existingRegistry_

◆ modelPorts_

◆ dataSinks_

+ Collaboration diagram for SimulatedBuilderContext:

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