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 682 by tim, Tue Aug 12 17:51:33 2003 UTC vs.
Revision 1118 by tim, Mon Apr 19 03:52:27 2004 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines