MOGAL
|
Class for loading a genetic algorithm factory. More...
#include <gamodule.h>
Public Member Functions | |
GAFactory * | createFactoryInstance () const |
Calls the CreateFactoryInstance function which is stored in the module and returns the new GAFactory instance. |
Class for loading a genetic algorithm factory from a module. Such a module should have a function named CreateFactoryInstance which returns a a GAFactory object when called.
When creating a module, some code similar to the following can be used:
extern "C" { mogal::GAFactory *CreateFactoryInstance() { return new MyGAFactory(); } }