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

Description

Test:
verify the basic usage patterns of the configurable factory template.
  • Depending on the concrete fabrication signature, the factory can produce "things" by invoking suitable fabrication functions. These functions are to be installed beforehand, and can be addressed through an ID.
  • these fabrication functions are installed per instance of the factory. Such a concrete factory configuration can be copied
  • optionally each created product can be passed through a wrapper function
  • there is a preconfigured wrapper for creating refcounting smart ptrs.
  • it is possible to define a custom wrapper function on factory setup.
See also
lib::MultiFact

Definition at line 114 of file multifact-test.cpp.

Private Member Functions

virtual void run (Arg)
 
string callMe (string val)
 
void produce_simple_values ()
 
void produce_smart_pointers ()
 
void pass_additional_arguments ()
 
void fed_a_custom_finishing_functor ()
 

Private Attributes

uint invocations_ = 0
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 117 of file multifact-test.cpp.

References MultiFact_test::fed_a_custom_finishing_functor(), MultiFact_test::pass_additional_arguments(), MultiFact_test::produce_simple_values(), and MultiFact_test::produce_smart_pointers().

+ Here is the call graph for this function:

◆ callMe()

string callMe ( string  val)
inlineprivate

Definition at line 126 of file multifact-test.cpp.

References MultiFact_test::invocations_.

Referenced by MultiFact_test::produce_simple_values().

+ Here is the caller graph for this function:

◆ produce_simple_values()

void produce_simple_values ( )
inlineprivate

Definition at line 135 of file multifact-test.cpp.

References MultiFact_test::callMe(), MultiFact< SIG, ID, Wrapper >::contains(), MultiFact< SIG, ID, Wrapper >::defineProduction(), MultiFact_test::invocations_, and VERIFY_ERROR.

Referenced by MultiFact_test::run().

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

◆ produce_smart_pointers()

void produce_smart_pointers ( )
inlineprivate

Definition at line 197 of file multifact-test.cpp.

References MultiFact< SIG, ID, Wrapper >::defineProduction().

Referenced by MultiFact_test::run().

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

◆ pass_additional_arguments()

void pass_additional_arguments ( )
inlineprivate

Definition at line 236 of file multifact-test.cpp.

References MultiFact< SIG, ID, Wrapper >::defineProduction(), and INSTANCEOF.

Referenced by MultiFact_test::run().

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

◆ fed_a_custom_finishing_functor()

void fed_a_custom_finishing_functor ( )
inlineprivate

Definition at line 280 of file multifact-test.cpp.

References MultiFact< SIG, ID, Wrapper >::defineProduction().

Referenced by MultiFact_test::run().

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

Member Data Documentation

◆ invocations_

uint invocations_ = 0
private
+ Inheritance diagram for MultiFact_test:
+ Collaboration diagram for MultiFact_test:

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