# | Line 22 | Line 22 | void ZConsParaData::sortByIndex(){ | |
---|---|---|
22 | ||
23 | void ZConsParaData::sortByIndex(){ | |
24 | sort(data.begin(), data.end(), ZConsParaSortCriterion()); | |
25 | + | } |
26 | + | bool ZConsParaData::isIndexUnique(){ |
27 | + | |
28 | + | for(int i = 0; i < (int)(data.size() - 1); i++) |
29 | + | for(int j = i + 1; j < (int)(data.size()); j++) |
30 | + | if(data[i].zconsIndex == data[j].zconsIndex) |
31 | + | return false; |
32 | + | |
33 | + | return true; |
34 | + | } |
35 | + | |
36 | + | AtomData::~AtomData(){ |
37 | + | vector<AtomInfo*>::iterator i; |
38 | + | AtomInfo* atomInfo; |
39 | + | |
40 | + | for(atomInfo = beginAtomInfo(i); atomInfo; atomInfo = nextAtomInfo(i)) |
41 | + | delete atomInfo; |
42 | + | |
43 | + | data.clear(); |
44 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |