|
gfactory
|
Type-erased factory interface used by GManager. More...
#include <gfactory.h>
Public Member Functions | |
| virtual | ~GFactoryBase ()=default |
| Virtual destructor for safe deletion through base pointer. | |
| virtual void * | Create ()=0 |
| Instantiate the concrete product. | |
GManager stores factories for many unrelated types inside a single container. This is achieved by type-erasing the creation operation into Create(), which returns a raw pointer as void*.
Definition at line 37 of file gfactory.h.
|
virtualdefault |
|
pure virtual |
void*.Implemented in GFactory< T >.