aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Problem.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/Problem.hpp')
-rw-r--r--src/engine/Problem.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/engine/Problem.hpp b/src/engine/Problem.hpp
index a5fe853..7d96250 100644
--- a/src/engine/Problem.hpp
+++ b/src/engine/Problem.hpp
@@ -29,10 +29,12 @@ namespace Machina {
class Problem : public Eugene::Problem<Machine> {
public:
- Problem(TimeUnit unit, const std::string& target_midi, SharedPtr<Machine> seed = SharedPtr<Machine>());
+ Problem(TimeUnit unit,
+ const std::string& target_midi,
+ SPtr<Machine> seed = SPtr<Machine>());
virtual ~Problem() {}
- void seed(SharedPtr<Machine> parent) { _seed = parent; }
+ void seed(SPtr<Machine> parent) { _seed = parent; }
float fitness(const Machine& machine) const;
@@ -109,8 +111,8 @@ private:
TimeUnit _unit;
- Evaluator _target;
- SharedPtr<Machine> _seed;
+ Evaluator _target;
+ SPtr<Machine> _seed;
/// for levenshtein distance
mutable std::vector< std::vector<uint16_t> > _matrix;