MOGAL
Public Member Functions

mogal::GAModule Class Reference

Class for loading a genetic algorithm factory. More...

#include <gamodule.h>

Inheritance diagram for mogal::GAModule:
Inheritance graph
[legend]
Collaboration diagram for mogal::GAModule:
Collaboration graph
[legend]

List of all members.

Public Member Functions

GAFactorycreateFactoryInstance () const
 Calls the CreateFactoryInstance function which is stored in the module and returns the new GAFactory instance.

Detailed Description

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();
        }
 }

The documentation for this class was generated from the following file: