1#ifndef ECF_CARTESIAN_CARTESIANGENE_H
2#define ECF_CARTESIAN_CARTESIANGENE_H
6 typedef unsigned int uint;
9 CartesianGene(uint value_,
const std::vector<uint>& inputConnections_,
bool isOutput_ =
false) :
10 value(value_), inputConnections(inputConnections_), isOutput(isOutput_) {};
16 std::vector<uint> inputConnections;
18 friend std::ostream& operator<<(std::ostream& out,
const CartesianGene& cg) {
19 out << cg.value <<
' ';
21 for(uint i = 0; i < cg.inputConnections.size(); i++) {
22 out << cg.inputConnections[i] <<
' ';