X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=src%2Fgenealgorithms.h;h=0158c35108616b4fd18b452ec357fa39841005c3;hb=052ccbc26078638efee3614cd7cc2ea485313cad;hp=b0e75b9f65790e184eabe46b6bf9ec9dba8d1002;hpb=bd6d14a70222d80caf00cee73b3014d392dbc69f;p=germs.git diff --git a/src/genealgorithms.h b/src/genealgorithms.h index b0e75b9..0158c35 100644 --- a/src/genealgorithms.h +++ b/src/genealgorithms.h @@ -27,6 +27,9 @@ class GeneOrder; struct Component{ Component(int b,int e,int s):begin(b),end(e),sign(s){} + bool operator==(const Component& c){ + return begin == c.begin && end == c.end && sign == c.sign; + } int begin; int end; int sign;