Implements rutz::creator_base by calling a function pointer. More...
#include <rutz/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. |
Implements rutz::creator_base by calling a function pointer.
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.
typedef derived_t(* rutz::creator_from_func< base_t, derived_t >::creator_func_t)() |
rutz::creator_from_func< base_t, derived_t >::creator_from_func | ( | creator_func_t | func | ) | [inline] |
virtual rutz::creator_base<base_t>* rutz::creator_from_func< base_t, derived_t >::clone | ( | ) | const [inline, virtual] |
virtual base_t rutz::creator_from_func< base_t, derived_t >::create | ( | ) | [inline, virtual] |
Create an object using the creator function.
Implements rutz::creator_base< base_t >.