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

Description

Test:
create a standalone model port registry to verify the behaviour of model ports, accessed through reference handles. This test provides an example setup detached from the real usage situation within the builder. The ModelPortRegistry management interface is used to create and track a set of model ports, to be made visible by an atomic, transactional switch. The access for client code through the ModelPort frontend is then verified.
See also
mobject::ModelPort
mobject::builder::ModelPortRegistry

Definition at line 102 of file model-port-registry-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void fabricating_ModelPorts (ModelPortRegistry &registry)
 
void accessing_ModelPorts ()
 
void transactionalSwitch (ModelPortRegistry &registry)
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 106 of file model-port-registry-test.cpp.

References ModelPortRegistry_test::accessing_ModelPorts(), ModelPortRegistry_test::fabricating_ModelPorts(), and ModelPortRegistry_test::transactionalSwitch().

+ Here is the call graph for this function:

◆ fabricating_ModelPorts()

void fabricating_ModelPorts ( ModelPortRegistry registry)
inlineprivate

Definition at line 117 of file model-port-registry-test.cpp.

References ModelPortRegistry::commit(), ModelPortRegistry::contains(), ModelPortRegistry::definePort(), and VERIFY_ERROR.

Referenced by ModelPortRegistry_test::run().

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

◆ accessing_ModelPorts()

void accessing_ModelPorts ( )
inlineprivate

Definition at line 144 of file model-port-registry-test.cpp.

References ModelPort::exists(), ModelPort::holder(), ModelPort::pipe(), ID< Pipe >::streamType(), ModelPort::streamType(), and VERIFY_ERROR.

Referenced by ModelPortRegistry_test::run().

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

◆ transactionalSwitch()

void transactionalSwitch ( ModelPortRegistry registry)
inlineprivate

Definition at line 187 of file model-port-registry-test.cpp.

References ModelPortRegistry::clear(), ModelPortRegistry::commit(), ModelPortRegistry::contains(), ModelPortRegistry::definePort(), ModelPort::exists(), ModelPortRegistry::get(), ModelPort::holder(), ModelPortRegistry::isRegistered(), ModelPort::pipe(), ModelPortRegistry::remove(), ModelPortRegistry::rollback(), and VERIFY_ERROR.

Referenced by ModelPortRegistry_test::run().

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

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