Lumiera  0.pre.03
»edit your freedom«
MultiFactSingleton_test Class Reference

Description

Test:
verify the use of the MultiFact template to access Singletons.

While generally speaking the MultiFact allows us to address and invoke several "production lines" by ID, an obvious use case would be to access a "family" of singletons through this mechanism. And indeed, MultiFact::Singleton is a preconfigured shortcut for this use case. The actual singleton access factories are placed into a static context (here in the anonymous namespace above) and their access operation is wired as "factory function".

  • we use a hierarchy of test dummy objects
  • we set up a singleton factory for several subclasses
  • the registration happens automatically in the ctor
  • we verify that we indeed get the correct flavour.
See also
lib::MultiFact

Definition at line 103 of file multifact-singleton-test.cpp.

Private Member Functions

void run (Arg)
 
+ Inheritance diagram for MultiFactSingleton_test:
+ Collaboration diagram for MultiFactSingleton_test:

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