aboutsummaryrefslogtreecommitdiff
path: root/include/HyperNeat/Innovation.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/HyperNeat/Innovation.hpp')
-rw-r--r--include/HyperNeat/Innovation.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/HyperNeat/Innovation.hpp b/include/HyperNeat/Innovation.hpp
new file mode 100644
index 0000000..ac618e5
--- /dev/null
+++ b/include/HyperNeat/Innovation.hpp
@@ -0,0 +1,25 @@
+#ifndef __HYPERNEAT_INNOVATION_HPP__
+#define __HYPERNEAT_INNOVATION_HPP__
+
+#include <Hyperneat/Utils/Size.hpp>
+#include <Hyperneat/Utils/NodeTypes.hpp>
+
+namespace hyperneat
+{
+ class Innovation
+ {
+ public:
+ Innovation() = default;
+ Innovation(size_t number, size_t source, size_t target, double depth, NodeType nodeType);
+
+ bool operator== (const Innovation& other) const;
+
+ size_t _number = 0;
+ size_t _source = 0;
+ size_t _target = 0;
+ double _depth = 0.0;
+ NodeType _nodeType = NodeType::NULL_TYPE;
+ };
+}
+
+#endif