Fix Copy constructor.
[genetic.git] / src / generation.h
1 #ifndef __GENERATION_H
2 #define __GENERATION_H
3
4 #include <vector>
5
6 #include <gene.h>
7 #include <chromosome.h>
8
9 using namespace std;
10
11 namespace genetic {
12     template < typename _Chromosome >
13     class Generation {
14     protected:
15         vector<_Chromosome> chromosomes;
16
17     public:
18         Generation(vector<_Chromosome> chromosomes) {
19             this->chromosomes = chromosomes;
20         }
21
22         vector<_Chromosome> get() {
23             return this->chromosomes;
24         }
25     };
26 }
27
28 #endif /* __GENERATION_H */