
#include <rutz/factory.h>
Inheritance diagram for rutz::creator_from_func< base_t, derived_t >:


rutz::creator_from_func implements the rutz::creator_base interface by storing a pointer to function that returns an object of the appropriate type.
Definition at line 78 of file factory.h.
Public Types | |
| typedef derived_t(* | creator_func_t )() |
| Creator function type. | |
Public Member Functions | |
| creator_from_func (creator_func_t func) | |
| Construct with a creator function. | |
| virtual rutz::creator_base< base_t > * | clone () const |
| Clone operator. | |
| virtual base_t | create () |
| Create an object using the creator function. | |
|
|||||
|
Creator function type.
|
|
||||||||||
|
Construct with a creator function.
|
|
|||||||||
|
Clone operator.
Implements rutz::creator_base< base_t >. |
|
|||||||||
|
Create an object using the creator function.
Implements rutz::creator_base< base_t >. |
1.4.4