ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/GenericData.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/GenericData.cpp (file contents):
Revision 735 by tim, Tue Aug 12 17:51:33 2003 UTC vs.
Revision 736 by tim, Thu Aug 28 21:09:47 2003 UTC

# 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 > }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines