Lumiera  0.pre.03
»edit your freedom«
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 114 of file builder-tool-test.cpp.

Private Member Functions

virtual void run (Arg)
 
+ Inheritance diagram for BuilderTool_test:
+ Collaboration diagram for BuilderTool_test:

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