LoveBrains  1.0.0
i_generator.h
1 /*
2 ** i_generator.h for GAEngine in /home/robin_f/Programming/Git/CPP/GAEngine
3 **
4 ** Made by Guillaume ROBIN
5 ** Login <robin_f@epitech.eu>
6 **
7 ** Started on Tue Jul 21 16:03:50 2015 Guillaume ROBIN
8 ** Last update Fri Aug 21 17:18:15 2015 Guillaume ROBIN
9 */
10 
11 #ifndef I_GENERATOR_H_
12 # define I_GENERATOR_H_
13 
14 # include "GA/i_dna.h"
15 
16 namespace GA
17 {
22  class IGenerator
23  {
24  public:
28  virtual ~IGenerator(void);
29 
34  virtual IDNA *Generate(void) const = 0;
35  };
36 }
37 
38 #endif /* !I_GENERATOR_H_ */
Define the interface that will be used to create an supported individual for the GAEngine.
Definition: i_dna.h:22
Define the interface that allow to define a new generator of individual for the GAEngine.
Definition: i_generator.h:22
Contains the objects that define the GAEngine.
virtual IDNA * Generate(void) const =0
Generate a new individual.
virtual ~IGenerator(void)
Destructor.
Definition: i_generator.cc:15