# | Line 22 | Line 22 | void ZConsParaData::sortByIndex(){ | |
---|---|---|
22 | ||
23 | void ZConsParaData::sortByIndex(){ | |
24 | sort(data.begin(), data.end(), ZConsParaSortCriterion()); | |
25 | < | } |
25 | > | } |
26 | > | bool ZConsParaData::isIndexUnique(){ |
27 | > | |
28 | > | for(int i = 0; i < data.size() - 1; i++) |
29 | > | for(int j = i + 1; j < data.size(); j++) |
30 | > | if(data[i].zconsIndex == data[j].zconsIndex) |
31 | > | return false; |
32 | > | |
33 | > | return true; |
34 | > | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |