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

Description

Test:
the generic visitor pattern specialised for treating MObjects in the builder. Besides using existing MObject types (at the moment session::Clip), we create a yet-unknown new MObject subclass. When passing such to any BuilderTool subclass, the compiler enforces the definition of a catch-all function, which is called, when there is no other applicable treat(MO&) function. Note further, within the specific treat-functions we get direct references, without interfering with Placements and memory management. But from within the treat() function, we may access the wrapper object (i.e. shared_ptr, or lumiera::P or Placement) used when invoking the BuilderTool by using the protected interface on BuilderTool.
See also
VisitingTool_test for checking general visitor functionality

Definition at line 105 of file builder-tool-test.cpp.

Private Member Functions

virtual void run (Arg)
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 108 of file builder-tool-test.cpp.

References steam::mobject::builder::apply(), Media::create, TestTool::log_, and steam::asset::VIDEO.

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

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