Grail (C++)  1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Selection.hh
1 // Copyright QED Software 2023.
2 
3 #ifndef GRAIL_SELECTION_H
4 #define GRAIL_SELECTION_H
5 
6 #include <memory>
7 #include <vector>
8 
9 namespace grail
10 {
11 namespace evolution
12 {
13  class EvoScript;
14 
18  class Selection
19  {
20  public:
21  virtual ~Selection();
27  virtual void Perform(std::vector<std::unique_ptr<EvoScript>>& population, size_t populationMaxSize);
28  };
29 }
30 }
31 #endif // GRAIL_SELECTION_H
grail::evolution::Selection::Perform
virtual void Perform(std::vector< std::unique_ptr< EvoScript >> &population, size_t populationMaxSize)
Definition: Selection.cpp:10
grail::evolution::Selection
The Selection class encapsulates the selection operation, i.e., how individuals are selected from the...
Definition: Selection.hh:18