#include <modules.h>

Static Public Member Functions | |
| template<class M > | |
| static int | getModuleID () |
| Returns the ID of a module-type. | |
| static void | init () |
| Method to instantiate the singleton. | |
| static void | destroy () |
| Method to delete the singleton. | |
| static const Module & | prototype (int id) |
| Returns a reference to the module prototype with given id. | |
| static Module * | newModule (int id, Module::CloneMethod method=Module::DeepCopy) |
| Returns a new instance of the module-type with given id. | |
| static void | changeDefaultSettings (const Module &module) |
| Sets appropriate prototype settings according to given module's settings. | |
Private Member Functions | |
| ModuleFactory () | |
| Private constructor to avoid uncontrolled instantiation. | |
| ~ModuleFactory () | |
| Deletes the prototypes. | |
| void | initialize () |
| The real constructing routine. | |
Static Private Member Functions | |
| static void | instantiateModules () |
| Never called, only exists for certain templates to be instantiated in modules.cpp. | |
Private Attributes | |
| std::vector< Module * > | prototypes |
| Pointers to the prototypes for every module type (indexed by their ID's). | |
Static Private Attributes | |
| static ModuleFactory * | instance = 0 |
| Static pointer to the only instance of the ModuleFactory. | |
Definition at line 245 of file modules.h.
1.5.8