aboutsummaryrefslogtreecommitdiff
path: root/src/Innovation.cpp
blob: 0332616fbeb2b87eb21acd6bdbe2cfa35b9cc176 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <Hyperneat/Innovation.hpp>

using namespace hyperneat;

Innovation::Innovation(size_t number, size_t source, size_t target, double depth, NodeType nodeType)
    : _number(number), _source(source), _target(target), _depth(depth), _nodeType(nodeType)
{}

bool
Innovation::operator==(const Innovation& other) const
{
    return (_source   == other._source  ) &&
           (_target   == other._target  ) &&
           (_depth    == other._depth   ) &&
           (_nodeType == other._nodeType);
}